LxnChan

如何导出 macOS 的 PingFangSC 字体给 Windows 用?

  •  
  •   LxnChan · Apr 18, 2022 · 3263 views
    This topic created in 1556 days ago, the information mentioned may be changed or developed.

    从 macOS Monterey 里面把 PingFangSC.ttc 复制出来之后我想把它转变为 Windows 可用的字体,经过搜索资料了解到需要先解包再替换 ttx 中的内容,但是我在修改之后仍然无法导入 Windows 。

    想请教一下大家如何操作?

    现在我修改过的 ttx 文件:

    报错:

    重新打包:

    另:我知道有现成的字体可以下载。

    参考的资料:

    1. https://zhuanlan.zhihu.com/p/38679788

    2. https://www.zhihu.com/question/58705102/answer/158508334

    3. https://blog.dsrkafuu.net/post/2020/extract-sf-pingfang/

    1 replies    2022-05-08 00:59:03 +08:00
    AlphaRobert
        1
    AlphaRobert  
       May 8, 2022
    其实只要用 ttx dump 出来再 build 回去就可以在 Windows 下打开了,跟 name 表的关系不大。我没有仔细研究过,个人猜测有可能是某些校验字段不正确,其他的一些程序解包出来的就没有这个问题。

    一般 Windows 下 name 表不对不会影响字体文件预览,而且被删除的那些 name 记录也都是通常字体会有的。第三篇参考资料还有个问题,作者把 cmap 和 CMap 混起来了 ( https://github.com/adobe-type-tools/cmap-resources#cmap-resources-versus-cmap-tables)。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3163 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 13:28 · PVG 21:28 · LAX 06:28 · JFK 09:28
    ♥ Do have faith in what you're doing.