WoffFont

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_typeFontType読み取りフォントタイプを取得します。
font_namestr読み取りフォント名を取得します。
font_familystr読み取りフォント ファミリーを取得します。
font_stylestr読み取りフォントスタイルを取得します。
num_glyphsint読み取りグリフ数を取得します。
metricsFontMetrics読み取りメトリクスを取得します。
encodingFontEncoding読み取りエンコーディングを取得します。
glyph_accessorGlyphAccessor読み取りグリフアクセサを取得します。
metadata_xmlstr読み取りメタデータXMLを取得します。
inner_fontTtfFont読み取り内部フォントを取得します。

メソッド

シグネチャ説明
__init__(inner: TtfFont, metadata_xml: str)Calls init この WoffFont インスタンスにおいて。
get_kern_pairs() → list[KernPair]カーンペアを返します。
`to_bytes(font_type: FontTypeNone)→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を呼び出します。

参照

 日本語