Java library for OpenType font file parsing
Font font = OpenType.parse(filePath);
System.out.println(font.getPath("you are right").toSVG())
A Font represents a loaded OpenType font file.
Convert specified to a Path object with default size.
Convert all glyph to a Path object with default size. (default: 16 fonts in one line and per font with size of 44*40)
Convert the given glyph name to a single GlyphData object.
A Glyph is an individual mark that often corresponds to a character.
Get a glyph Path object with default size(44*40) we can use to export(eg. saving as a svg file).
Get a glyph Path object with specified size(fontCell) we can use to export(eg. saving as a svg file).
fontCell
: An outer bounds of a cell where a font will be rendered in
A Path containing a set of path commands similar to a SVG path.
Convert the path to a string of svg dom.
Save the path as a svg file which locate in the filePath
Save the path as a JPEG file
Save the path as an image file specified by format. Supporting for JPEG or PNG format currently
Convert the path to byte array of a jpeg image
Convert the path to byte array of specified image format
MIT