java.lang.Object
org.sejda.sambox.pdmodel.font.encoding.Encoding
org.sejda.sambox.pdmodel.font.encoding.Type1Encoding
- All Implemented Interfaces:
COSObjectable
An encoding for a Type 1 font.
-
Field Summary
Fields inherited from class org.sejda.sambox.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 Type1EncodingfromFontBox(org.apache.fontbox.encoding.Encoding encoding) Creates an encoding from the given FontBox encoding.Returns the name of this encoding.Methods inherited from class org.sejda.sambox.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
- Returns:
- The
COSBasethat matches this Java object.
-
getEncodingName
Description copied from class:EncodingReturns the name of this encoding.- Specified by:
getEncodingNamein classEncoding
-