FontEncoding

Overview

FontEncoding is a class in Aspose.PDF FOSS for Java.

Maps character codes (0-255) to glyph names and Unicode codepoints.

This class provides 7 methods for working with FontEncoding objects in Java programs. Available methods include: FontEncoding, fromDictionary, getGlyphName, getInstance, getName, getUnicode, withDifferences. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: MAC_EXPERT, MAC_ROMAN, STANDARD, SYMBOL, WIN_ANSI, ZAPF_DINGBATS, and 1 more.

Properties

NameTypeAccessDescription
nameStringReadReturns the encoding name.
WIN_ANSIFontEncodingReadWinAnsiEncoding singleton (ISO 32000, Table D.1).
MAC_ROMANFontEncodingReadMacRomanEncoding singleton (ISO 32000, Table D.1).
STANDARDFontEncodingReadStandardEncoding singleton (ISO 32000, Table D.1).
MAC_EXPERTFontEncodingReadMacExpertEncoding singleton.
SYMBOLFontEncodingReadSymbol encoding for Symbol font.
ZAPF_DINGBATSFontEncodingReadZapfDingbats encoding.

Methods

SignatureDescription
FontEncoding(name: String)Creates a new FontEncoding with the given name.
getInstance(name: String)FontEncodingReturns a built-in encoding by name.
fromDictionary(encDict: PdfDictionary)FontEncodingCreates a FontEncoding from a PDF /Encoding dictionary.
getGlyphName(charCode: int)StringReturns the glyph name for the given character code.
getUnicode(charCode: int)intReturns the Unicode codepoint for the given character code.
withDifferences(differences: PdfArray)FontEncodingCreates a new encoding by cloning this one and applying a /Differences array.
getName()StringReturns the encoding name.

See Also

 English