Thread: Font error: invalid argument
-
March 22nd, 2024, 14:02 #1
Font error: invalid argument
I am getting this error message and try to figure out what exactly is not correct. I assume that the font is not fulfilling all requirements but it would be good to know what exactly triggers this error and how to prevent it.
-
March 22nd, 2024, 14:07 #2
This error is thrown by the FreeType library and is fairly generic. This error occurs when a function receives an argument that doesn’t meet the expected criteria or is out of bounds. For example, it might happen when trying to load a glyph with an invalid glyph index or an unsupported format. Essentially, there is an error with the font file that is preventing FreeType from successfully rendering it.
-
March 22nd, 2024, 16:25 #3
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,651
Usually, when I run across a font that is throwing errors, I load it up in FontForge and re-export. That usually cleans up the font data, so that it can be used by a standardized library like FreeType (which is the one we use).
Regards,
JPG
-
March 22nd, 2024, 18:50 #4
Thanks a lot pindercarl and JPG - that was really helpful - I am able to fix those problems now
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks