Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering colored emojis #15

Open
sven-n opened this issue Jan 7, 2024 · 0 comments
Open

Rendering colored emojis #15

sven-n opened this issue Jan 7, 2024 · 0 comments

Comments

@sven-n
Copy link
Owner

sven-n commented Jan 7, 2024

For text rendering, see CUIRenderTextOriginal::RenderText.
Currently, emojis are only rendered in one color.

To draw colored emojis we'd need to draw a group of them on a texture bitmap (e.g. 16x16 emojis each 32x32 pixels) using direct2d, or by providing an already rendered bitmap.
It would be great to have some on-demand mechanism to create new textures if previously unrendered emojis are requested, so the first option might be more suitable.

As we have .NET available, it could also be possible to manage emojis in the .NET world. There are some nice libraries which could help us there, e.g. SixLabors/ImageSharp.Drawing#268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant