WoffFont
Vue de l’ensemble
‘WoffFont’ est une classe dans Aspose.FONT FOSS pour Python.Déduit de: ‘Fonte’.
WoffFont.font_type retourne la valeur d’enumeration de ce font WOFF.
Cette classe fournit 14 méthodes pour travailler avec des objets WoffFont dans les programmes Python. Les méthodologies disponibles comprennent: __init__, convert , ’encodage’, font_family ; font_name; Font_type : get_kern_pairs . glyph_accessor. métrique., num_glyfset 2 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Pythone après l'installation de l’Aspose.Fon FOSS pour le package PyThone. Propriétés :encoder,, font-famili , font _name ́, style_font`` fonttypy_ype, gliphogeccessoreet plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
font_type | FontType | Read | Gets the font type. |
font_name | str | Read | Gets the font name. |
font_family | str | Read | Gets the font family. |
font_style | str | Read | Gets the font style. |
num_glyphs | int | Read | Gets the num glyphs. |
metrics | FontMetrics | Read | Gets the metrics. |
encoding | FontEncoding | Read | Gets the encoding. |
glyph_accessor | GlyphAccessor | Read | Gets the glyph accessor. |
metadata_xml | str | Read | Gets the metadata xml. |
inner_font | TtfFont | Read | Gets the inner font. |
méthodes
| Signature | Description |
|---|---|
__init__(inner: TtfFont, metadata_xml: str) | Calls init on this WoffFont instance. |
get_kern_pairs() → list[KernPair] | Returns the kern pairs. |
| `to_bytes(font_type: FontType | None)→bytes` |
font_type() → FontType | Returns the FontType enumeration value of this WOFF font |
font_name() → str | Property provides the font’s name string |
font_family() → str | Property provides the family name string of the font |
font_style() → str | Calls font_style on this WoffFont instance. |
num_glyphs() → int | Property returns the count of glyphs in the font |
metrics() → FontMetrics | Property returns the FontMetrics object for the font |
encoding() → FontEncoding | Calls encoding on this WoffFont instance. |
glyph_accessor() → GlyphAccessor | Returns a GlyphAccessor for retrieving glyph information |
save(path: str) | Calls save on this WoffFont instance. |
save_to_format(font_type: FontType, path: str) | Calls save_to_format on this WoffFont instance. |
convert(target: FontType) → Font | Calls convert on this WoffFont instance. |
Voir aussi
- Aspose.Font — référence API d’entreprise