LoadFont / LoadFontEx fail with "Character size is bigger than expected font size" #4736
-
So I am trying to use a TTF. I followed the TTF example here so code looks like this:
When I run the app, it still uses built-in font (not my ttf) and following messages are printed:
I've tried a whole bunch of fonts ttf and odf, including monaspace etc I get same results. What am I doing wrong? How do I load a font to use it for DrawText(Ex)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, I think I understand - LoadFont(Ex) can only be called after InitWindow. Not sure about error messages here - maybe LoadFont should check that InitWindow is done are report a clearer error (e.g. "LoadFont failed. Call InitWindow before calling LoadFont")? |
Beta Was this translation helpful? Give feedback.
Ok, I think I understand - LoadFont(Ex) can only be called after InitWindow.
Not sure about error messages here - maybe LoadFont should check that InitWindow is done are report a clearer error (e.g. "LoadFont failed. Call InitWindow before calling LoadFont")?