Finding out what characters a given font supports

前端 未结 12 1581
你的背包
你的背包 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:51

    fc-query my-font.ttf will give you a map of supported glyphs and all the locales the font is appropriate for according to fontconfig

    Since pretty much all modern linux apps are fontconfig-based this is much more useful than a raw unicode list

    The actual output format is discussed here http://lists.freedesktop.org/archives/fontconfig/2013-September/004915.html

提交回复
热议问题