Replies: 2 comments 1 reply
-
There shouldn't be anything about stb_truetype (or OpenGL) that would cause this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm working on a project where I use the stb_truetype library for rendering text in an OpenGL environment. I've encountered a problem related to different methods of loading font data. Here's a detailed description of the situation:
xxd -i 9x18.ttf > font_data.c
.fontData
array, which contains the data of "9x18.ttf" font, in my project..ttf
file, the text renders correctly.fontData array
with "9x18.ttf" data, the text does not display in the window.stbtt_InitFont
andstbtt_BakeFontBitmap
functions for font initialization and baking.Text rendering is done using
stbtt_GetBakedQuad
and standard OpenGL calls.stbtt_InitFont
returns success in both loading methods.I would appreciate any suggestions or insights that might help me solve this problem.
Beta Was this translation helpful? Give feedback.
All reactions