LocaTable
LocaTable
概述
LocaTable 是Python的Aspose.Font FOSS中的一个类.
LocaTable.glyph_offset(gid) 返回字体的字符表内给定的字母标识符的文字符数据的位移.
这个类提供了4种方法,用于在Python程序中使用LocaTable 对象. 有的方法包括: from_reader, glyph_length, glyph_offset, to_bytes. 在安装Python包的Aspose.Font FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: offsets.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
offsets | list[int] | 阅读/写作 | 获取或设置偏移量。. |
方法
| Signature | 描述情况 |
|---|---|
from_reader(r: BinaryReader, num_glyphs: int, index_to_loc_format: int, table_length: int) → "LocaTable" | 读取一个 Loca 表从 BinaryReader 使用字符数,格式和长度 |
to_bytes(index_to_loc_format: int) → bytes | 根据给定的index_to_loc_format将Loca表序列化为字节 |
glyph_offset(gid: int) → int | 返回字体的字符表中的给定字母 ID 的字节对比. |
glyph_length(gid: int) → int | 返回给定 gid 的字符数据的字节长度. |