Class FontHeaders

java.lang.Object
org.apache.fontbox.ttf.FontHeaders

public final class FontHeaders extends Object
To improve performance of FileSystemFontProvider.scanFonts(...), this class is used both as a marker (to skip unused data) and as a storage for collected data.

Tables it needs:

  • NamingTable.TAG
  • HeaderTable.TAG
  • OS2WindowsMetricsTable.TAG
  • CFFTable.TAG (for OTF)
  • "gcid" (for non-OTF)
  • Field Details

    • BYTES_GCID

      static final int BYTES_GCID
      See Also:
    • error

      private String error
    • name

      private String name
    • headerMacStyle

      private Integer headerMacStyle
    • os2Windows

      private OS2WindowsMetricsTable os2Windows
    • fontFamily

      private String fontFamily
    • fontSubFamily

      private String fontSubFamily
    • nonOtfGcid142

      private byte[] nonOtfGcid142
    • isOTFAndPostScript

      private boolean isOTFAndPostScript
    • otfRegistry

      private String otfRegistry
    • otfOrdering

      private String otfOrdering
    • otfSupplement

      private int otfSupplement
  • Constructor Details

    • FontHeaders

      public FontHeaders()
  • Method Details

    • getError

      public String getError()
    • getName

      public String getName()
    • getHeaderMacStyle

      public Integer getHeaderMacStyle()
      null == no HeaderTable, ttf.getHeader().getMacStyle()
    • getOS2Windows

      public OS2WindowsMetricsTable getOS2Windows()
    • getFontFamily

      public String getFontFamily()
    • getFontSubFamily

      public String getFontSubFamily()
    • isOpenTypePostScript

      public boolean isOpenTypePostScript()
    • getNonOtfTableGCID142

      public byte[] getNonOtfTableGCID142()
    • getOtfRegistry

      public String getOtfRegistry()
    • getOtfOrdering

      public String getOtfOrdering()
    • getOtfSupplement

      public int getOtfSupplement()
    • setError

      public void setError(String exception)
    • setName

      void setName(String name)
    • setHeaderMacStyle

      void setHeaderMacStyle(Integer headerMacStyle)
    • setOs2Windows

      void setOs2Windows(OS2WindowsMetricsTable os2Windows)
    • setFontFamily

      void setFontFamily(String fontFamily, String fontSubFamily)
    • setNonOtfGcid142

      void setNonOtfGcid142(byte[] nonOtfGcid142)
    • setIsOTFAndPostScript

      void setIsOTFAndPostScript(boolean isOTFAndPostScript)
    • setOtfROS

      public void setOtfROS(String otfRegistry, String otfOrdering, int otfSupplement)