Finding out what characters a given font supports

前端 未结 12 1505
你的背包
你的背包 2020-11-30 22:24

How do I extract the list of supported Unicode characters from a TrueType or embedded OpenType font on Linux?

Is there a tool or a library I can use to process a .tt

12条回答
  •  有刺的猬
    2020-11-30 22:56

    The character code points for a ttf/otf font are stored in the CMAP table.

    You can use ttx to generate a XML representation of the CMAP table. see here.

    You can run the command ttx.exe -t cmap MyFont.ttf and it should output a file MyFont.ttx. Open it in a text editor and it should show you all the character code it found in the font.

提交回复
热议问题