-
-
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
ImFontAtlasBuildWithStbTrueType assertion with Gcc 13+ #7856
Labels
Comments
Forgot to add the following for config: |
The glyph range is persistent (static const global) |
There’s no end zero terminator in your array so it’s reading undefined memory. |
That works. Thanks ocornut. |
Not a bug. The array was not zero terminated. |
I will amend the comments to suggest that as another possibility of mistake. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version/Branch of Dear ImGui:
v1.91.1
Back-ends:
OpenGL / glfw3
Compiler, OS:
gcc 13.2 and higher
Full config/build information:
No response
Details:
With older Gcc compilers (11, 12) and with VS 2022, I have working code which appends a range of glyphs to StbTruetype. Using gcc compiler 13 and 14, I get an assertion in imgui_draw.cpp:2819 bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas *) Assertion 'src_range[0] <= src_range[1]' failed.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: