StandardFonts

StandardFonts

概述

StandardFonts 是 Aspose.PDF FOSS 中用于 Python 的一个类。

用于 PDF 标准 14 种字体的实用类。

此类提供了 4 种方法,用于在 Python 程序中处理 StandardFonts 对象。可用的方法包括:ALL、get_default_encoding、get_glyph_width、is_standard_font。在安装了 Aspose.PDF FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。

方法

签名描述
ALL()返回所有标准字体名称的列表。
is_standard_font(font_name)Return True if font_name 是 PDF 标准 14 种字体之一。
get_glyph_width(font_name, char_code)返回字形的宽度 font_name and char_code.
get_default_encoding(font_name)返回标准字体的默认编码名称。

另请参阅

 中文