Font
Overview
Font is a class in Aspose.Font FOSS for Python.
Inherits from: ABC.
Abstract base for all font format implementations.
Methods
| Signature | Description |
|---|---|
font_type() → FontType | |
font_name() → str | |
font_family() → str | |
font_style() → str | |
num_glyphs() → int | |
metrics() → FontMetrics | |
encoding() → FontEncoding | |
glyph_accessor() → GlyphAccessor | |
save(path: str) | |
to_bytes(font_type: FontType | None) → bytes | |
save_to_format(font_type: FontType, path: str) | |
get_kern_pairs() → list[KernPair] | Return all kern pairs for this font. |
convert(target: FontType) → Font |