Skip to content
forked from kv01/ttf-parser

A bare-bones ttf font parser for fast GPU font rendering

License

Notifications You must be signed in to change notification settings

Aarkham/ttf-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ttf-parser

A bare-bones, single header file ttf font parser for font rendering.

How to use

  • Define TTF_FONT_PARSER_IMPLEMENTATION in ONE cpp file to enable the implementation in the header file.
  • Use parse_file or parse_data to get a FontData structure with all font metrics and glyph data needed for rendering common fonts.
  • parse_file is currently synchronous except when compiled with emscripten but will still execute the callback

Glyph geometry is a set of lines and quadratic curves

About

A bare-bones ttf font parser for fast GPU font rendering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%