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

OpenMoji-Color fonts incompatible with WinAPI. #478

Open
tomwiel opened this issue Dec 1, 2023 · 2 comments
Open

OpenMoji-Color fonts incompatible with WinAPI. #478

tomwiel opened this issue Dec 1, 2023 · 2 comments

Comments

@tomwiel
Copy link

tomwiel commented Dec 1, 2023

For MS Windows Software, the common (also simplest) way to use Color Fonts with API (DirectWrite) is:
"To opt in to color glyph rendering, pass the D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT"
This works with several fonts (Segoe UI Emoji, Twemoji Mozilla, EmojiTwo COLRv0, Noto Color Emoji).
But with OpenMoji, the text never shows OpenMoji glyphs, but only fallback-glyphs (if available) from Segoe UI Emoji.
The big FOSS software (Browsers, Libre Office) use other libraries which don't have this problem.
But typical app developers use DirectWrite or components based on DirectWrite.
DirectWrite officially supports COLR (v0, v1) and some other formats.
There must be some solution to generate the font file (eg. COLRv0) compliantly,
but I have no knowledge about file details and potential modifications or tools.

@tomwiel
Copy link
Author

tomwiel commented Dec 2, 2023

I also found an older OpenMoji variant from a different site (Emoji-COLRv0) which is compatible with DirectWrite.

@b-g b-g added the help wanted label Dec 6, 2023
@b-g
Copy link
Member

b-g commented Dec 6, 2023

I'm afraid but all the fonts are experimental and not for production. The fonts are out of scope of the OpenMoji project. We simply don't have the time and resources to do / test them. But of course any contribution to make the fonts really work everywhere are welcome.

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

No branches or pull requests

2 participants