Class Type1Encoding
java.lang.Object
org.apache.pdfbox.pdmodel.font.encoding.Encoding
org.apache.pdfbox.pdmodel.font.encoding.Type1Encoding
- All Implemented Interfaces:
COSObjectable
An encoding for a Type 1 font.
-
Field Summary
Fields inherited from class org.apache.pdfbox.pdmodel.font.encoding.Encoding
CHAR_CODE, CHAR_NAME, codeToName, inverted
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty encoding.Type1Encoding
(org.apache.fontbox.afm.FontMetrics fontMetrics) Creates an encoding from the given AFM font metrics. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type1Encoding
fromFontBox
(org.apache.fontbox.encoding.Encoding encoding) Creates an encoding from the given FontBox encoding.Convert this standard java object to a COS object.Returns the name of this encoding.Methods inherited from class org.apache.pdfbox.pdmodel.font.encoding.Encoding
add, contains, contains, getCodeToNameMap, getInstance, getName, getNameToCodeMap, overwrite
-
Constructor Details
-
Type1Encoding
public Type1Encoding()Creates an empty encoding. -
Type1Encoding
public Type1Encoding(org.apache.fontbox.afm.FontMetrics fontMetrics) Creates an encoding from the given AFM font metrics.- Parameters:
fontMetrics
- AFM font metrics.
-
-
Method Details
-
fromFontBox
Creates an encoding from the given FontBox encoding.- Parameters:
encoding
- FontBox encoding
-
getCOSObject
Description copied from interface:COSObjectable
Convert this standard java object to a COS object.- Returns:
- The cos object that matches this Java object.
-
getEncodingName
Description copied from class:Encoding
Returns the name of this encoding.- Specified by:
getEncodingName
in classEncoding
-