Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.font.encoding

public Class Type1Encoding

extends Encoding
Class Inheritance
Imports
org.apache.fontbox.afm.CharMetric, .FontMetrics, org.apache.pdfbox.cos.COSBase, java.util.Map

An encoding for a Type 1 font.

Field Summary

Inherited from org.apache.pdfbox.pdmodel.font.encoding.Encoding:
CHAR_CODECHAR_NAMEcodeToNameinverted

Constructor Summary

AccessConstructor and Description
public
Type1Encoding()

Creates an empty encoding.

public
Type1Encoding(FontMetrics
AFM font metrics.
fontMetrics
)

Creates an encoding from the given AFM font metrics.

Method Summary

Modifier and TypeMethod and Description
public static Type1Encoding

Returns:

the encoding created from the given FontBox encoding
fromFontBox
(Encoding
FontBox encoding
encoding
)

Creates an encoding from the given FontBox encoding.

public COSBase
getCOSObject()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

public String
getEncodingName()

Implements abstract org.apache.pdfbox.pdmodel.font.encoding.Encoding.getEncodingName.

Returns the name of this encoding.

Inherited from org.apache.pdfbox.pdmodel.font.encoding.Encoding:
addcontainscontainsgetCodeToNameMapgetInstancegetNamegetNameToCodeMapoverwrite

Constructor Detail

Type1Encodingback to summary
public Type1Encoding()

Creates an empty encoding.

Type1Encodingback to summary
public Type1Encoding(FontMetrics fontMetrics)

Creates an encoding from the given AFM font metrics.

Parameters
fontMetrics:FontMetrics

AFM font metrics.

Method Detail

fromFontBoxback to summary
public static Type1Encoding fromFontBox(Encoding encoding)

Creates an encoding from the given FontBox encoding.

Parameters
encoding:Encoding

FontBox encoding

Returns:Type1Encoding

the encoding created from the given FontBox encoding

getCOSObjectback to summary
public COSBase getCOSObject()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Doc from org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

Returns:COSBase

The cos object that matches this Java object.

Annotations
@Override
getEncodingNameback to summary
public String getEncodingName()

Implements abstract org.apache.pdfbox.pdmodel.font.encoding.Encoding.getEncodingName.

Doc from org.apache.pdfbox.pdmodel.font.encoding.Encoding.getEncodingName.

Returns the name of this encoding.

Returns:String

the name of the encoding

Annotations
@Override