规范( http://www.microsoft.com/typography/otspec/cmap.htm )在 windows 平台中只有 platformID 3(windows) 和 platformID 1(Mac) 和 encodingID。 Windows 之外的其他平台和其他编码怎么样?
我使用 ttfdump
转储一种 adobe 字体,它给了我:
'cmap' Table - Character to Glyph Index Mapping Table
-----------------------------------------------------
'cmap' version: 0
number of encodings: 5
number of subtables: 3
Encoding 0. PlatformID: 0
EcodingID: 3
SubTable: 0, Offset: 0x00000a0e
Encoding 1. PlatformID: 0
EcodingID: 4
SubTable: 1, Offset: 0x0000cc26
Encoding 2. PlatformID: 1
EcodingID: 25
SubTable: 2, Offset: 0x0000002c
Encoding 3. PlatformID: 3
EcodingID: 1
SubTable: 0, Offset: 0x00000a0e
Encoding 4. PlatformID: 3
EcodingID: 10
SubTable: 1, Offset: 0x0000cc26
所以它确实有其他平台和编码,但在哪里可以找到定义?
最佳答案
Microsoft documentation 中有下表:
Platform ID | Platform name | Platform-specific encoding IDs | Language IDs
-------------|---------------|---------------------------------|--------------
0 | Unicode | Various | Various
1 | Macintosh | Script manager code | Various
2 | ISO [deprec] | ISO encoding [deprecated] | None
3 | Windows | Windows encoding | Various
4 | Custom | Custom | None
关于非标准编码 ID:
关于truetype - OpenType的cmap中platformID和encodingID是什么意思?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25281928/