Click or drag to resize

FontGetEncoding Method

Gets the encoding of this font.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public string[] GetEncoding()

Return Value

Type: String
The font's encoding array (the mapping of Character codes to glyphs). The Array contains 256 Strings. If a String is not NULL, it containing the name of the glyph for the code point corresponding to the index. If it is NULL, then the name of the glyph is unchanged from that specified by the font's builtin encoding. For a Type 3 font, all glyph names will be present in the encoding Array, and NULL entries correspond to un-encoded code points.
Remarks
The Font object is the owner of the Array. This function is not applicable to composite fonts (e_type0, e_CIDType0, and e_CIDType2) and will throw an exception.
See Also