CffCharset
Overview
CffCharset is a class in Aspose.Font FOSS for Python.
CffCharset.standard(num_glyphs) creates a standard CFF charset for the given number of glyphs, and name_for(gid) returns the glyph name for a glyph ID.
This class provides 4 methods for working with CffCharset objects in Python programs.
Available methods include: from_reader, gid_for, name_for, standard.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
standard(num_glyphs: int) → "CffCharset" | Creates a standard CFF charset for the given number of glyphs, and name_for(gid) returns the glyph name for a glyph ID |
from_reader(r: BinaryReader, num_glyphs: int, string_index: CffIndex) → "CffCharset" | Reads charset data from a binary reader using glyph count and string index |
name_for(gid: int) → str | Returns the glyph name associated with the specified glyph ID |
gid_for(name: str) → int | None | Looks up the glyph ID for a given glyph name, or returns None if not found |