-
-
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
Get assert while enable bitmap mode for freetype #4145
Comments
Hello, If I try your code with my copy of msgothic.ttc (8780 KB) it works and I don't hit this assert. Could you make those changes:
const FT_Bitmap* ft_bitmap = src_tmp.Font.RenderGlyphAndGetInfo(&src_glyph.Info);
if (ft_bitmap == NULL)
{
printf("RenderGlyphAndGetInfo() failed for codepoint %04X\n", src_glyph.Codepoint);
continue;
}
if (error != 0)
{
printf("RenderGlyphAndGetInfo() failed: %X \"%s\"\n", error, FT_Error_String(error));
return NULL;
} And then report on the glyphs (which glyphs are failing and why). Thank you! |
Thank you! But what means AS A SECOND FONT? I just load this font. |
If you only load this font and all glyphes are missing you won’t be able to easily use the UI and use the viewer, that’s why as a second font the UI can use default font.
|
Maybe try to update Freetype, you can too use vcpkg to install recent version of Freetype.
|
Thanks a lot! I use FreeType by the implementation of vcpkg, that bitmap mode works well. But my project use cmake to install freetype, maybe i get mistake and i would fix it future. |
…h apparently happens with Freetype 2.11). (ocornut#4394, ocornut#4145 ?)
…h apparently happens with Freetype 2.11). (ocornut#4394, ocornut#4145 ?)
Version/Branch of Dear ImGui:
Version: 1.83 WIP
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Compiler: mingw64 gcc8.1.0
Operating System: windows 10 x64
My Issue/Question:
I use the clion to program my project. When i see the imgui_freetype.h/.cpp, it can enable bitmap mode. I want to use this function, but i get assert like next screenshot after i set like this pull 3879.
Screenshots/Video
Standalone, minimal, complete and verifiable example: (see #2261)
The text was updated successfully, but these errors were encountered: