Skip navigation
Lempytushe
Currently Being Moderated

Render Glyp Data from a TrueType Character

Apr 27, 2012 5:39 AM

Tags: #typography #font #text #truetype #glyph #glyphs #rasterizing

Hi,

 

Is it possible to draw a character on screen with only the Glyph Data from the glyf table in the TrueType file?

I have been searching and found soms API's that can render glyphs. Most of them need acces to the .ttf file.

 

Hope somseone can help me. If my question isn't clear enough or you need more info, just ask.

 
Replies
  • Currently Being Moderated
    Apr 27, 2012 11:12 AM   in reply to Lempytushe

    You don't specify what platform you are on, which would be a necessary piece of information.

     

    There's a reason that most APIs don't do this.

     

    The hinting code for the TTF is not in the glyf table, but requires a number of other tables (prep, prgm, CVT, just off the top of my head). Most rendering engines for fonts will do a truly awful job at small to medium sizes without hinting code present in the font. Say, at 24 or 30 px or smaller.

     

    There are exceptions to the need for hints. Apple's Quartz rendering usually ignores the hints in the font anyway (except at truly tiny sizes, unless the user has tweaked that cut-off size). The FreeType rendering engine can be set to ignore hints and auto-hint on the fly. If the rendered size is large enough (exact size depends on font and rendering mode/engine), unhinted fonts may render acceptably.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points