EotFont

Vue de l’ensemble

‘EotFont’ est une classe dans Aspose.FONT FOSS pour Python.Déduit de: ‘Fonte’.

Le tapis OpenType (EOT) intégré est enveloppé sur un font TrueTYpe/OpenTyp interne.

Cette classe fournit 14 méthodes pour travailler avec des objets EotFont dans les programmes Python. Les méthodologies disponibles comprennent: __init__, convert , ’encodage ; font_family; font-name : font _style .font_type.get_kern_pairs., glyph_accessor,, metrics, num_glyf senregistrer et 2 autres méthode. 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 : charseteot_version flags fontfamilies` et plus.

Propriétés

NameTypeAccessDescription
font_typeFontTypeReadGets the font type.
inner_fontTtfFontReadGets the inner font.
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.
eot_versionintReadGets the eot version.
flagsintReadGets the flags.
charsetintReadGets the charset.
italicintReadGets the italic.
weightintReadGets the weight.
fs_typeintReadGets the fs type.

méthodes

SignatureDescription
__init__(inner: TtfFont, eot_version: int, flags: int, charset: int, italic: int, weight: int, fs_type: int)Create an EOT wrapper around an inner sfnt font.
get_kern_pairs()list[KernPair]Returns the kern pairs.
`to_bytes(font_type: FontTypeNone)bytes`
font_type()FontTypeReturns the FontType enumeration value of this EOT font
font_name()strProperty contains the font’s name string
font_family()strProperty contains the font family name string
font_style()strReturns the style descriptor (e.g., Regular, Bold) as a string
num_glyphs()intProperty stores the total glyph count of the font
metrics()FontMetricsProperty holds a FontMetrics object with metric data for the font
encoding()FontEncodingProperty holds a FontEncoding object describing the font’s encoding
glyph_accessor()GlyphAccessorCalls glyph_accessor on this EotFont instance.
save(path: str)Writes the EOT font to the file system at the specified path
save_to_format(font_type: FontType, path: str)Converts the font to the given FontType and saves it to the path
convert(target: FontType)FontCreates and returns a new Font object of the specified target FontType

Voir aussi

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