CffEncoding

Overview

CffEncoding is a class in Aspose.Font FOSS for Python. Inherits from: FontEncoding.

CffEncoding.unicode_to_gid(codepoint) returns the GlyphId for a Unicode codepoint according to the current CFF encoding.

This class provides 5 methods for working with CffEncoding objects in Python programs. Available methods include: expert, from_reader, get_all_codepoints, standard, unicode_to_gid. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

Methods

SignatureDescription
from_reader(r: BinaryReader, num_glyphs: int, charset: CffCharset, string_index: CffIndex)"CffEncoding"Creates an encoding by reading from a BinaryReader using the given glyph count, charset, and string index
standard(charset: CffCharset)"CffEncoding"Returns a standard CFF encoding configured for the supplied charset
expert(charset: CffCharset)"CffEncoding"Returns an expert CFF encoding configured for the supplied charset
unicode_to_gid(codepoint: int)GlyphIdReturns the GlyphId for a Unicode codepoint according to the current CFF encoding
get_all_codepoints()list[int]Returns the all codepoints.

See Also