Package org.scilab.forge.jlatexmath
Class GlyphOutlines.GlyphFont
java.lang.Object
org.scilab.forge.jlatexmath.GlyphOutlines.GlyphFont
- Enclosing class:
GlyphOutlines
The glyphs of one font (one TTF file).
-
Method Summary
Modifier and TypeMethodDescriptiongetName()The name of the TTF file, without ".ttf".intintThe size of the em square: one unit of the outlines is 1/unitsPerEm em.booleanhasGlyph(int code) booleanvisit(int code, GlyphOutlines.Sink sink) Gives the outline of a glyph to the sink.
-
Method Details
-
getName
The name of the TTF file, without ".ttf". -
getUnitsPerEm
public int getUnitsPerEm()The size of the em square: one unit of the outlines is 1/unitsPerEm em. -
getNumberOfGlyphs
public int getNumberOfGlyphs() -
hasGlyph
public boolean hasGlyph(int code) -
visit
Gives the outline of a glyph to the sink.- Returns:
- false if the font has no glyph for this code (nothing is given to the sink); a blank glyph (a space) returns true and draws nothing.
-