This method returns a GlyphRun object, which includes an array of Glyphs and GlyphPositions for the given string. toSVG ( ) // create a font subset var subset = font. layout ( 'hello world!' ) // get an SVG path for a glyph var svg = run. returns a GlyphRun, describing glyphs and positions. openSync ( 'font.ttf' ) // layout a string, using default shaping features. Var fontkit = require ( 'fontkit' ) // open a font synchronously var font = fontkit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |