WoffFont
概要
WoffFont は Aspose.Font の FOSS(Python 用)にあるクラスです。継承元: Font。
WoffFont.font_type は、この WOFF フォントの FontType 列挙値を返します。
このクラスは、Python プログラムで WoffFont オブジェクトを操作するための 14 のメソッドを提供します。利用可能なメソッドは、__init__、convert、encoding、font_family、font_name、font_style、font_type、get_kern_pairs、glyph_accessor、metrics、num_glyphs、save、および 2 つの追加メソッドです。すべてのパブリックメンバーは、Aspose.Font の Python 用 FOSS パッケージをインストールした後、任意の Python アプリケーションから利用可能です。プロパティ: encoding、font_family、font_name、font_style、font_type、glyph_accessor、および 4 つの追加項目。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
font_type | FontType | 読み取り | フォントタイプを取得します。 |
font_name | str | 読み取り | フォント名を取得します。 |
font_family | str | 読み取り | フォント ファミリーを取得します。 |
font_style | str | 読み取り | フォントスタイルを取得します。 |
num_glyphs | int | 読み取り | グリフ数を取得します。 |
metrics | FontMetrics | 読み取り | メトリクスを取得します。 |
encoding | FontEncoding | 読み取り | エンコーディングを取得します。 |
glyph_accessor | GlyphAccessor | 読み取り | グリフアクセサを取得します。 |
metadata_xml | str | 読み取り | メタデータXMLを取得します。 |
inner_font | TtfFont | 読み取り | 内部フォントを取得します。 |
メソッド
| シグネチャ | 説明 |
|---|---|
__init__(inner: TtfFont, metadata_xml: str) | Calls init この WoffFont インスタンスにおいて。 |
get_kern_pairs() → list[KernPair] | カーンペアを返します。 |
| `to_bytes(font_type: FontType | None)→bytes` |
font_type() → FontType | この WOFF フォントの FontType 列挙値を返します。 |
font_name() → str | プロパティはフォントの名前文字列を提供します。 |
font_family() → str | プロパティはフォントのファミリ名文字列を提供します。 |
font_style() → str | この WoffFont インスタンスで font_style を呼び出します。 |
num_glyphs() → int | プロパティはフォント内のグリフ数を返します。 |
metrics() → FontMetrics | プロパティはフォントに対する FontMetrics オブジェクトを返します。 |
encoding() → FontEncoding | この WoffFont インスタンスで encoding を呼び出します。 |
glyph_accessor() → GlyphAccessor | グリフ情報を取得するためのGlyphAccessorを返します |
save(path: str) | このWoffFontインスタンスのsaveを呼び出します。 |
save_to_format(font_type: FontType, path: str) | このWoffFontインスタンスのsave_to_formatを呼び出します。 |
convert(target: FontType) → Font | このWoffFontインスタンスのconvertを呼び出します。 |