WoffFont

WoffFont

Overzicht

WoffFont is een klasse in Aspose.Font FOSS voor Python. Erft van: Font.

WoffFont.font_type retourneert de FontType enumeratiewaarde van dit WOFF-lettertype.

Deze klasse biedt 14 methoden voor het werken met WoffFont objecten in Python programma’s. Beschikbare methoden omvatten: __init__, convert, encoding, font_family, font_name, font_style, font_type, get_kern_pairs, glyph_accessor, metrics, num_glyphs, save, en 2 extra methoden. Alle publieke leden zijn toegankelijk voor elke Python applicatie na het installeren van het Aspose.Font FOSS voor Python pakket. Eigenschappen: encoding, font_family, font_name, font_style, font_type, glyph_accessor, en nog 4.

Eigenschappen

NaamTypeToegangBeschrijving
font_typeFontTypeLezenHaalt het lettertype op.
font_namestrLezenHaalt de lettertype-naam op.
font_familystrLezenHaalt de lettertypefamilie op.
font_stylestrLezenHaalt de lettertype-stijl op.
num_glyphsintLezenHaalt de num glyphs op.
metricsFontMetricsLezenHaalt de metriek op.
encodingFontEncodingLezenHaalt de codering op.
glyph_accessorGlyphAccessorLezenHaalt de glyph accessor op.
metadata_xmlstrLezenHaalt de metadata-xml op.
inner_fontTtfFontLezenHaalt het interne lettertype op.

Methoden

HandtekeningBeschrijving
__init__(inner: TtfFont, metadata_xml: str)Calls init op deze WoffFont instantie.
get_kern_pairs() → list[KernPair]Retourneert de kerningparen.
`to_bytes(font_type: FontTypeNone)→bytes`
font_type() → FontTypeRetourneert de FontType enumeratiewaarde van dit WOFF-lettertype
font_name() → strEigenschap levert de naamstring van het lettertype
font_family() → strEigenschap levert de familienaam-string van het lettertype
font_style() → strRoept font_style aan op deze WoffFont instantie.
num_glyphs() → intEigenschap retourneert het aantal glyfen in het lettertype
metrics() → FontMetricsEigenschap retourneert het FontMetrics object voor het lettertype
encoding() → FontEncodingRoept encoding aan op deze WoffFont instantie.
glyph_accessor() → GlyphAccessorRetourneert een GlyphAccessor voor het ophalen van glyph-informatie
save(path: str)Roept save aan op deze WoffFont instantie.
save_to_format(font_type: FontType, path: str)Roept save_to_format aan op deze WoffFont instantie.
convert(target: FontType) → FontRoept convert aan op deze WoffFont instantie.

Zie ook

 Nederlands