Skip to content

cambiata/HxTrueType

Repository files navigation

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

About

Native Haxe TrueType parsing and rendering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages