Class GlyphOutlines.GlyphFont

java.lang.Object
org.scilab.forge.jlatexmath.GlyphOutlines.GlyphFont
Enclosing class:
GlyphOutlines

public static final class GlyphOutlines.GlyphFont extends Object
The glyphs of one font (one TTF file).
  • Method Details

    • getName

      public String 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

      public boolean visit(int code, GlyphOutlines.Sink sink)
      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.