FontEncoding

Overview

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

Maps Unicode codepoints to glyph IDs.

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

Methods

SignatureDescription
unicode_to_gid(codepoint: int)GlyphIdConverts a Unicode codepoint to its corresponding GlyphId
get_all_codepoints()list[int]Returns the all codepoints.

See Also