kernTable supported- Full outline support
- Most
CMAPs implemented - all glyphs listed in any cmap can be accessed with
gid_for_unicode_codepoint(orgid_for_codepointwhich calls the former)
- Charstring format 1 and 2 are fully implemented
- All glyphs that are listed by
/Encodingcan be accessed viagid_for_codepoint. Glyphs can be looked up from unicode values if they are defined in AdobesStandardEncoding. - All glyphs can be accessed by name using
gid_for_name - (not yet implemented: Translating codepoints into glyph names and using them for lookup)
- Contains a PostScript interpreter (without file access)
- Calling PostScript from CharStrings (used for Hinting) is not implemented. Instead they are emulated and the correct outline is produced.
- Glyphs can accessed with:
gid_for_nameusing the name of the charstringgid_for_codepointusing the built in/Encodinggid_for_unicode_codepointusing the AFL-Glyphlist
- The
glyf(TrueType) andCFF(Type1) outlines are supported. SVGoutlines are supported.- Most of the
CMAPformats are implemented. - Kerning using the
kernandGPOStable is implemented.
- essentially OpenType fonts. implemented and working.
NOTE: The code may change a bit. Especially multi-codepoint glyphs cannot be looked up yet.
Fonts are loaded with parse, which returns a trait object.
You can try it out here Drop font files on the page to add them.