Package org.apache.fontbox.ttf
Class FontHeaders
java.lang.Object
org.apache.fontbox.ttf.FontHeaders
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()null == no HeaderTable,ttf.getHeader().getMacStyle()getName()byte[]intbooleanvoid(package private) voidsetFontFamily(String fontFamily, String fontSubFamily) (package private) voidsetHeaderMacStyle(Integer headerMacStyle) (package private) voidsetIsOTFAndPostScript(boolean isOTFAndPostScript) (package private) void(package private) voidsetNonOtfGcid142(byte[] nonOtfGcid142) (package private) voidsetOs2Windows(OS2WindowsMetricsTable os2Windows) void
-
Field Details
-
BYTES_GCID
static final int BYTES_GCID- See Also:
-
error
-
name
-
headerMacStyle
-
os2Windows
-
fontFamily
-
fontSubFamily
-
nonOtfGcid142
private byte[] nonOtfGcid142 -
isOTFAndPostScript
private boolean isOTFAndPostScript -
otfRegistry
-
otfOrdering
-
otfSupplement
private int otfSupplement
-
-
Constructor Details
-
FontHeaders
public FontHeaders()
-
-
Method Details
-
getError
-
getName
-
getHeaderMacStyle
null == no HeaderTable,ttf.getHeader().getMacStyle() -
getOS2Windows
-
getFontFamily
-
getFontSubFamily
-
isOpenTypePostScript
public boolean isOpenTypePostScript() -
getNonOtfTableGCID142
public byte[] getNonOtfTableGCID142() -
getOtfRegistry
-
getOtfOrdering
-
getOtfSupplement
public int getOtfSupplement() -
setError
-
setName
-
setHeaderMacStyle
-
setOs2Windows
-
setFontFamily
-
setNonOtfGcid142
void setNonOtfGcid142(byte[] nonOtfGcid142) -
setIsOTFAndPostScript
void setIsOTFAndPostScript(boolean isOTFAndPostScript) -
setOtfROS
-