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

Crash in RenderGlyphAndGetInfo of Imgui_freetype with freetype 2.11 #4394

Closed
metarutaiga opened this issue Aug 4, 2021 · 1 comment
Closed

Comments

@metarutaiga
Copy link

metarutaiga commented Aug 4, 2021

Version/Branch of Dear ImGui:

Version: 1.84
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: Custom
Compiler: Visual Studio 2019
Operating System: Windows 10

My Issue/Question:

const FT_Bitmap* ft_bitmap = src_tmp.Font.RenderGlyphAndGetInfo(&src_glyph.Info);
IM_ASSERT(ft_bitmap);

Crash here because FT_Render_Glyph reported Unimplemented_Feature error in some fonts since freetype 2.11

FT_Error error = FT_Render_Glyph(slot, RenderMode);

It maybe a bug in freetype 2.11.

I found the two fonts that it can show this bug.

  • msgothic.ttc
  • mingliu.ttc

Edit : Someone also has the same problem.
https://gitlab.freedesktop.org/freetype/freetype/-/issues/1076

ocornut added a commit that referenced this issue Aug 23, 2021
@ocornut
Copy link
Owner

ocornut commented Aug 23, 2021

Pushed a fix on imgui_freetype side for it, thank you.
As per #4145 I'd be curious to find which glyph it is failing on?

@ocornut ocornut closed this as completed Aug 23, 2021
AnClark pushed a commit to AnClark/imgui-vst-mod that referenced this issue Aug 30, 2021
AnClark pushed a commit to AnClark/imgui-vst-mod that referenced this issue Aug 30, 2021
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