TrueTypeFont
Overview
TrueTypeFont Python için Aspose.Page FOSS sınıfıdır.
TrueTypeFont, ileri genişlik, dikey ilerleme ve ayrış noktaları gibi düşük düzeyde glif metrikleri sunar.
Bu sınıf, Python programlarında TrueTypeFont nesnelerle çalışmak için 12 yöntem sunar. Mevcut yöntemler şunları içerir: __init__, glyph_advance, glyph_id_for_code, glyph_outline, glyph_sideways_advance, glyph_top_origin_x, glyph_top_origin_y_and_descender, glyph_vertical_advance, glyph_vertical_metrics, glyph_y_max, line_spacing_units, typo_ascender_units. Tüm kamu üyeleri, Python paket için Aspose.Page FOSS’u yükledikten sonra herhangi bir Python uygulamasına erişilebilir. Mülkiyet : units_per_em.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
units_per_em | `` | Read | Birimler için em. |
Methods
| Signature | Description |
|---|---|
__init__(data: bytes) | |
glyph_id_for_code(code: int) → int | |
glyph_advance(glyph_id: int) → float | |
glyph_vertical_advance(glyph_id: int) → `float | None` |
line_spacing_units() → float | |
typo_ascender_units() → float | |
glyph_top_origin_x(glyph_id: int) → float | |
glyph_top_origin_y_and_descender(glyph_id: int) → tuple[float, float] | |
glyph_sideways_advance(glyph_id: int) → float | |
glyph_vertical_metrics(glyph_id: int) → `tuple[float, float] | None` |
glyph_y_max(glyph_id: int) → `int | None` |
glyph_outline(glyph_id: int) → list[list[GlyphPoint]] |