-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Cannot load twemoji color font #6607
Labels
Comments
Twemoji is an SVG font, which aren't supported by FreeType out of the box. (Hence the failed assert.) There's a PR to enable support via LunaSVG, see #6591 |
@PathogenDavid thanks for the quick response, that works for me |
ocornut
pushed a commit
that referenced
this issue
Aug 1, 2023
ocornut
added a commit
that referenced
this issue
Aug 1, 2023
Merged Lunasvg support in #6591 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version/Branch of Dear ImGui:
Version: 1.89.7
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Compiler: Visual Studio 2022
Operating System: Windows
My Issue/Question:
I cannot load the twemoji font (https://github.com/twitter/twemoji), I followed the instructions here: https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#using-colorful-glyphsemojis. With seguiemj.ttf it works but not with twemoji.
It throws an exception in imgui_freetype.cpp (https://github.com/ocornut/imgui/blob/master/misc/freetype/imgui_freetype.cpp#L247):
IM_ASSERT(slot->format == FT_GLYPH_FORMAT_OUTLINE || slot->format == FT_GLYPH_FORMAT_BITMAP);
If I remove this assertion, the font atlas contains only a few icons from twemoji
Screenshots/Video
The text was updated successfully, but these errors were encountered: