TtfInstancer
Overview
TtfInstancer is a class in Aspose.Font FOSS for Python.
TtfInstancer.preview_naming_policy returns a naming preview for a variable font instance based on given coordinates and naming options.
This class provides 5 methods for working with TtfInstancer objects in Python programs.
Available methods include: available_naming_strategies, clean, instantiate, instantiate_gid, preview_naming_policy.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
preview_naming_policy(font: TtfFont, coordinates: dict[str, float], naming_strategy: str, family_suffix: str | None, legacy_family_name: str | None, typographic_family_name: str | None, legacy_style_name: str | None, typographic_style_name: str | None, stat_policy: str) → NamingPolicyPreview | Returns a naming preview for a variable font instance based on given coordinates and naming options |
instantiate(font: TtfFont, coordinates: dict[str, float], naming_strategy: str, family_suffix: str | None, legacy_family_name: str | None, typographic_family_name: str | None, legacy_style_name: str | None, typographic_style_name: str | None, stat_policy: str) → TtfFont | returns a newTtfFont` that is a static instance of the variable font at the given axis coordinates |
instantiate_gid(gid: int) → _InstantiatedGlyph | Returns an instantiated glyph object for the given glyph ID |
available_naming_strategies() → tuple[str, ...] | Lists all supported naming strategy identifiers |
clean(part: str) → str | Sanitizes and normalizes a naming string component |