Package com.itextpdf.io.font
Class FontIdentification
java.lang.Object
com.itextpdf.io.font.FontIdentification
Holds identification strings extracted from a font program.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the PANOSE classification.Returns the TrueType unique identifier.Returns the TrueType version string.Returns the Type 1 unique ID.protected voidsetPanose(byte[] panose) Sets the PANOSE classification from raw bytes.protected voidSets the PANOSE classification string.protected voidsetTtfUniqueId(String ttfUniqueId) Sets the TrueType unique identifier.protected voidsetTtfVersion(String ttfVersion) Sets the TrueType version.protected voidsetType1Xuid(Integer type1Xuid) Sets the Type 1 unique ID.
-
Constructor Details
-
FontIdentification
public FontIdentification()
-
-
Method Details
-
getTtfVersion
Returns the TrueType version string.- Returns:
-
the version string, or
nullwhen unavailable
-
getTtfUniqueId
Returns the TrueType unique identifier.- Returns:
-
the unique identifier, or
nullwhen unavailable
-
getType1Xuid
Returns the Type 1 unique ID.- Returns:
-
the identifier, or
nullwhen unavailable
-
getPanose
Returns the PANOSE classification.- Returns:
-
the classification string, or
nullwhen unavailable
-
setTtfVersion
Sets the TrueType version.- Parameters:
-
ttfVersion- the version string
-
setTtfUniqueId
Sets the TrueType unique identifier.- Parameters:
-
ttfUniqueId- the identifier
-
setType1Xuid
Sets the Type 1 unique ID.- Parameters:
-
type1Xuid- the unique ID
-
setPanose
protected void setPanose(byte[] panose) Sets the PANOSE classification from raw bytes.- Parameters:
-
panose- the PANOSE bytes
-
setPanose
Sets the PANOSE classification string.- Parameters:
-
panose- the classification string
-