Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.37 KB

README.md

File metadata and controls

19 lines (14 loc) · 1.37 KB

HxTrueType

Native Haxe TrueType parsing and rendering. WIP.

Based on

What?

  • Parses .ttf files and extracts glyph outline data, charactermap data (cmap), glyph metrics - not yet kerning data, but that's planned. Right now two implementations, one simpler based on Steve Hanov's code, where compound glyphs work, and one more complete based on Jan Flander's code where compound glyphs don't. The plan is to join these in a nice way... :-)
  • Utils for rendering outline data to html canvas or native svg (without html-dom dependencies).
  • Possible to save extracted truetype data as reusable Haxe typedef data, for easy use of font/glyphs without the parsing overhead.

alt text

TODO

  • Glyph metrics
  • String metrics including kerning