Class GFTrueTypeFontProgram

All Implemented Interfaces:
Object, External, FontProgram, TrueTypeFontProgram

public class GFTrueTypeFontProgram extends GFFontProgram implements TrueTypeFontProgram
Instance of this class represents TrueType font program embedded into PDF document.
Author:
Sergey Shemyakov
  • Field Details

    • TRUE_TYPE_PROGRAM_TYPE

      public static final String TRUE_TYPE_PROGRAM_TYPE
      Type name for GFTrueTypeFontProgram
      See Also:
  • Constructor Details

    • GFTrueTypeFontProgram

      public GFTrueTypeFontProgram(FontProgram trueTypeFont)
  • Method Details

    • getisSymbolic

      public Boolean getisSymbolic()
      Description copied from interface: TrueTypeFontProgram
      true / false if the corresponding PDF Font is marked as symbolic / non-symbolic in its font dictionary
      Specified by:
      getisSymbolic in interface TrueTypeFontProgram
      Returns:
      true / false if the corresponding PDF Font is marked as symbolic / non-symbolic in its font dictionary.
    • getnrCmaps

      public Long getnrCmaps()
      Description copied from interface: TrueTypeFontProgram
      number of cmap subtables in the font program
      Specified by:
      getnrCmaps in interface TrueTypeFontProgram
      Returns:
      number of cmap subtables in the font program.
    • getcmap30Present

      public Boolean getcmap30Present()
      Description copied from interface: TrueTypeFontProgram
      true if the font program contains the Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) cmap subtable
      Specified by:
      getcmap30Present in interface TrueTypeFontProgram
      Returns:
      true if the font program contains the Microsoft Symbol (3,0 – Platform ID=3, Encoding ID=0) cmap subtable.
    • getcmap31Present

      public Boolean getcmap31Present()
      Description copied from interface: TrueTypeFontProgram
      true if the font program contains the Microsoft Unicode (3,1 – Platform ID=3, Encoding ID=1) cmap subtable
      Specified by:
      getcmap31Present in interface TrueTypeFontProgram
      Returns:
      true if the font program contains the Microsoft Symbol (3,1 – Platform ID=3, Encoding ID=1) cmap subtable.
    • getcmap10Present

      public Boolean getcmap10Present()
      Description copied from interface: TrueTypeFontProgram
      true if the font program contains the Macintosh Roman (1,0 – Platform ID=1, Encoding ID=0) cmap subtable
      Specified by:
      getcmap10Present in interface TrueTypeFontProgram
      Returns:
      true if the font program contains the Microsoft Symbol (1,0 – Platform ID=1, Encoding ID=0) cmap subtable.