Class FontPack

java.lang.Object
com.teamten.font.FontPack

public class FontPack extends Object
A collection of fonts for a paragraph.
  • Method Details

    • create

      public static FontPack create(FontManager fontManager, TypefaceVariantSize regularFontDesc, TypefaceVariantSize codeFontDesc)
      Create a font pack from a description of the regular font and the code font. The other fonts are derived.
    • getRegularFont

      public SizedFont getRegularFont()
    • getBoldFont

      public SizedFont getBoldFont()
    • getItalicFont

      public SizedFont getItalicFont()
    • getBoldItalicFont

      public SizedFont getBoldItalicFont()
    • getSmallCapsFont

      public SizedFont getSmallCapsFont()
    • getCodeFont

      public SizedFont getCodeFont()
    • withTracking

      public FontPack withTracking(double tracking, double kerning)
      Returns a new font pack with all the fonts tracked as specified. See TrackingFont for the parameters.
    • withScaledFont

      public FontPack withScaledFont(double scale)
      Return a new font pack with all the fonts scaled by the specified amount.