Package org.scilab.forge.jlatexmath
Class GlyphOutlines
java.lang.Object
org.scilab.forge.jlatexmath.GlyphOutlines
The outlines of the glyphs of the TeX fonts, read from a
glyphs.bin
file made by tools/jlatexmath-glyphs/GenerateGlyphOutlines.java (the
format is described there).
No dependency on java.awt, javax.* or reflection: the same
code runs on the JVM and in the TeaVM builds, and gives the same numbers
everywhere. A glyph is given to a GlyphOutlines.Sink as a sequence of absolute
points, in font units, y axis up.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe glyphs of one font (one TTF file).static interfaceReceives the outline of a glyph. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlyphOutlinesThe outlines that go with the fonts of a registration object: the filefonts/glyphs.binof the package of its class.The font of a TTF file name, with or without ".ttf", or null.The names of the fonts of this file (TTF file names without ".ttf").static GlyphOutlinesparse(byte[] data) Parses the content of a glyphs.bin file: finds the glyphs, decodes none.
-
Method Details
-
getFontNames
The names of the fonts of this file (TTF file names without ".ttf"). -
getFont
The font of a TTF file name, with or without ".ttf", or null. -
forBase
The outlines that go with the fonts of a registration object: the filefonts/glyphs.binof the package of its class.baseis null for the base fonts, the registration object for an alphabet (Cyrillic, Greek), as inFontInfo.Read on the first use only, nothing is parsed by a diagram without math.
-
parse
Parses the content of a glyphs.bin file: finds the glyphs, decodes none.
-