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

NameTypeAccessDescription
font_typeFontTypeReadGets the font type.
font_namestrReadGets the font name.
font_familystrReadGets the font family.
font_stylestrReadGets the font style.
num_glyphsintReadGets the num glyphs.
metricsFontMetricsReadGets the metrics.
encodingFontEncodingReadGets the encoding.
glyph_accessorGlyphAccessorReadGets the glyph accessor.
metadata_xmlstrReadGets the metadata xml.
inner_fontTtfFontReadGets the inner font.

méthodes

SignatureDescription
__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: FontTypeNone)bytes`
font_type()FontTypeReturns the FontType enumeration value of this WOFF font
font_name()strProperty provides the font’s name string
font_family()strProperty provides the family name string of the font
font_style()strCalls font_style on this WoffFont instance.
num_glyphs()intProperty returns the count of glyphs in the font
metrics()FontMetricsProperty returns the FontMetrics object for the font
encoding()FontEncodingCalls encoding on this WoffFont instance.
glyph_accessor()GlyphAccessorReturns 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)FontCalls convert on this WoffFont instance.

Voir aussi

  • Aspose.Font — référence API d’entreprise
 Français