Class OFTableName


  • public final class OFTableName
    extends java.lang.Object
    Represents table names as found in a TrueType font's Table Directory. TrueType fonts may have custom tables so we cannot use an enum.
    • Field Detail

      • TABLE_DIRECTORY

        public static final OFTableName TABLE_DIRECTORY
        The first table in a TrueType font file containing metadata about other tables.
      • BASE

        public static final OFTableName BASE
        Baseline data
      • EBDT

        public static final OFTableName EBDT
        Embedded bitmap data.
      • EBLC

        public static final OFTableName EBLC
        Embedded bitmap location data.
      • EBSC

        public static final OFTableName EBSC
        Embedded bitmap scaling data.
      • FFTM

        public static final OFTableName FFTM
        A FontForge specific table.
      • GDEF

        public static final OFTableName GDEF
        Divides glyphs into various classes that make using the GPOS/GSUB tables easier.
      • GPOS

        public static final OFTableName GPOS
        Provides kerning information, mark-to-base, etc. for opentype fonts.
      • GSUB

        public static final OFTableName GSUB
        Provides ligature information, swash, etc. for opentype fonts.
      • LTSH

        public static final OFTableName LTSH
        Linear threshold table.
      • OS2

        public static final OFTableName OS2
        OS/2 and Windows specific metrics.
      • PCLT

        public static final OFTableName PCLT
        PCL 5 data.
      • VDMX

        public static final OFTableName VDMX
        Vertical Device Metrics table.
      • CMAP

        public static final OFTableName CMAP
        Character to glyph mapping.
      • CVT

        public static final OFTableName CVT
        Control Value Table.
      • FPGM

        public static final OFTableName FPGM
        Font program.
      • GASP

        public static final OFTableName GASP
        Grid-fitting and scan conversion procedure (grayscale).
      • GLYF

        public static final OFTableName GLYF
        Glyph data.
      • HDMX

        public static final OFTableName HDMX
        Horizontal device metrics.
      • HEAD

        public static final OFTableName HEAD
        Font header.
      • HHEA

        public static final OFTableName HHEA
        Horizontal header.
      • HMTX

        public static final OFTableName HMTX
        Horizontal metrics.
      • LOCA

        public static final OFTableName LOCA
        Index to location.
      • MAXP

        public static final OFTableName MAXP
        Maximum profile.
      • NAME

        public static final OFTableName NAME
        Naming table.
      • POST

        public static final OFTableName POST
        PostScript information.
      • PREP

        public static final OFTableName PREP
        CVT Program.
      • VHEA

        public static final OFTableName VHEA
        Vertical Metrics header.
      • VMTX

        public static final OFTableName VMTX
        Vertical Metrics.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the table as it should be in the Directory Table.
      • getValue

        public static OFTableName getValue​(java.lang.String tableName)
        Returns an instance of this class corresponding to the given string representation.
        Parameters:
        tableName - table name as in the Table Directory
        Returns:
        TTFTableName
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object