Class FontProgramDescriptor

java.lang.Object
com.itextpdf.io.font.FontProgramDescriptor

public class FontProgramDescriptor extends Object
Base font descriptor.
  • Method Details

    • getFontName

      public String getFontName()
      Gets the font name.
      Returns:
      font name
    • getStyle

      public String getStyle()
      Gets the style name.
      Returns:
      style string
    • getFontWeight

      public int getFontWeight()
      Gets the font weight.
      Returns:
      normalized font weight
    • getItalicAngle

      public float getItalicAngle()
      Gets the italic angle.
      Returns:
      counterclockwise degrees from vertical
    • isMonospace

      public boolean isMonospace()
      Checks whether the font is fixed pitch.
      Returns:
      true for a monospaced font
    • isBold

      public boolean isBold()
      Checks whether the Macintosh style flags declare bold.
      Returns:
      true when bold is declared
    • isItalic

      public boolean isItalic()
      Checks whether the Macintosh style flags declare italic.
      Returns:
      true when italic is declared
    • getFullNameLowerCase

      public String getFullNameLowerCase()
      Gets the lowercase full font name used for case-insensitive matching.
      Returns:
      lowercase full name
    • getFontNameLowerCase

      public String getFontNameLowerCase()
      Gets the lowercase name used for case-insensitive matching.
      Returns:
      lowercase font name
    • getFamilyNameLowerCase

      public String getFamilyNameLowerCase()
      Gets the lowercase preferred family name used for matching.
      Returns:
      lowercase family name, or null when absent
    • getFamilyName2LowerCase

      public String getFamilyName2LowerCase()
      Get extra family name if exists.
      Returns:
      extra family name if exists in the font, null otherwise.
    • getFullNameAllLangs

      public Set<String> getFullNameAllLangs()
      Gets lowercase full names from every available localization.
      Returns:
      internally retained set of localized full names
    • getFullNamesEnglishOpenType

      public Set<String> getFullNamesEnglishOpenType()
      Gets full names from supported English OpenType naming records.
      Returns:
      internally retained set of matching full names