DICE PACKS BUNDLE
  1. #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.

  2. #2
    pindercarl's Avatar
    Join Date
    Jan 2015
    Posts
    976
    Blog Entries
    2
    Quote Originally Posted by JMessmer View Post
    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.
    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.

  3. #3
    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

  4. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in