Class AbstractFont

java.lang.Object
com.teamten.font.AbstractFont
All Implemented Interfaces:
Font
Direct Known Subclasses:
DummyFont, FailoverFont, PdfBoxFont, SmallCapsFont, TrackingFont

public abstract class AbstractFont extends Object implements Font
Parent of real font classes, with stub methods.
  • Constructor Details

    • AbstractFont

      public AbstractFont()
      An abstract font with no ligature support.
    • AbstractFont

      public AbstractFont(Ligatures ligatures)
      An abstract font with ligature support.
  • Method Details

    • setLigatures

      protected void setLigatures(Ligatures ligatures)
    • getKerning

      public long getKerning(int leftChar, int rightChar, double fontSize)
      Description copied from interface: Font
      Get the kerning between the two code points. The result is in scaled points.
      Specified by:
      getKerning in interface Font
      fontSize - the size of the font in points.
    • transformLigatures

      public String transformLigatures(String text)
      Description copied from interface: Font
      Replaces all ligatures (supported by this font) in the string.
      Specified by:
      transformLigatures in interface Font