Quantcast
Channel: 极限社区 - 字体交流
Viewing all articles
Browse latest Browse all 2498

交流 苹方转换成Windows下可用字体的方法

$
0
0
苹方转换成Windows下可用字体的方法,以前版内有大佬发过方法,但是由于时间久远,有点难找到,我来整合一下。
这是原贴地址:http://bbs.themex.net/showthread.php?t=16903899
感谢@BlackGear大佬

预备工作
----------
下载Adobe Font Development Kit for OpenType,并安装
下载地址:http://www.adobe.com/devnet/opentype/afdko/eula.html

字体解包
----------
CMD依次运行如下命令(字体名视具体情况而定)
otc2otf PingFang.ttc
ttx -t cmap PingFangHK-Regular.otf
ren PingFangHK-Regular.ttx PingFangHK.ttx
ttx -t cmap PingFangSC-Regular.otf
ren PingFangSC-Regular.ttx PingFangSC.ttx
ttx -t cmap PingFangTC-Regular.otf
ren PingFangTC-Regular.ttx PingFangTC.ttx

修改CMap表
----------
参考 https://darknode.in/font/cmap-modify-tutorial/ 处理
将苹方字体的两个CMap字表
<cmap_format_4 platformID="0" platEncID="3" language="0">
<cmap_format_12 platformID="0" platEncID="4" format="12" reserved="0" length="189520" language="0" nGroups="15792">
复制一份
然后,
将 cmap_format_4 platformID="0" platEncID="3" 直接改为 cmap_format_4 platformID="3" platEncID="1"
将 cmap_format_12 platformID="0" platEncID="4" 直接改为 cmap_format_12 platformID="3" platEncID="10"

ttx封包
----------
CMD依次运行如下命令
ttx -b -m PingFangHK-Light.otf PingFangHK.ttx
del PingFangHK-Light.otf
ren PingFangHK.otf PingFangHK-Light.otf
ttx -b -m PingFangHK-Medium.otf PingFangHK.ttx
del PingFangHK-Medium.otf
ren PingFangHK.otf PingFangHK-Medium.otf
ttx -b -m PingFangHK-Regular.otf PingFangHK.ttx
del PingFangHK-Regular.otf
ren PingFangHK.otf PingFangHK-Regular.otf
ttx -b -m PingFangHK-Semibold.otf PingFangHK.ttx
del PingFangHK-Semibold.otf
ren PingFangHK.otf PingFangHK-Semibold.otf
ttx -b -m PingFangHK-Thin.otf PingFangHK.ttx
del PingFangHK-Thin.otf
ren PingFangHK.otf PingFangHK-Thin.otf
ttx -b -m PingFangHK-Ultralight.otf PingFangHK.ttx
del PingFangHK-Ultralight.otf
ren PingFangHK.otf PingFangHK-Ultralight.otf
ttx -b -m PingFangSC-Light.otf PingFangSC.ttx
del PingFangSC-Light.otf
ren PingFangSC.otf PingFangSC-Light.otf
ttx -b -m PingFangSC-Medium.otf PingFangSC.ttx
del PingFangSC-Medium.otf
ren PingFangSC.otf PingFangSC-Medium.otf
ttx -b -m PingFangSC-Regular.otf PingFangSC.ttx
del PingFangSC-Regular.otf
ren PingFangSC.otf PingFangSC-Regular.otf
ttx -b -m PingFangSC-Semibold.otf PingFangSC.ttx
del PingFangSC-Semibold.otf
ren PingFangSC.otf PingFangSC-Semibold.otf
ttx -b -m PingFangSC-Thin.otf PingFangSC.ttx
del PingFangSC-Thin.otf
ren PingFangSC.otf PingFangSC-Thin.otf
ttx -b -m PingFangSC-Ultralight.otf PingFangSC.ttx
del PingFangSC-Ultralight.otf
ren PingFangSC.otf PingFangSC-Ultralight.otf
ttx -b -m PingFangTC-Light.otf PingFangTC.ttx
del PingFangTC-Light.otf
ren PingFangTC.otf PingFangTC-Light.otf
ttx -b -m PingFangTC-Medium.otf PingFangTC.ttx
del PingFangTC-Medium.otf
ren PingFangTC.otf PingFangTC-Medium.otf
ttx -b -m PingFangTC-Regular.otf PingFangTC.ttx
del PingFangTC-Regular.otf
ren PingFangTC.otf PingFangTC-Regular.otf
ttx -b -m PingFangTC-Semibold.otf PingFangTC.ttx
del PingFangTC-Semibold.otf
ren PingFangTC.otf PingFangTC-Semibold.otf
ttx -b -m PingFangTC-Thin.otf PingFangTC.ttx
del PingFangTC-Thin.otf
ren PingFangTC.otf PingFangTC-Thin.otf
ttx -b -m PingFangTC-Ultralight.otf PingFangTC.ttx
del PingFangTC-Ultralight.otf
ren PingFangTC.otf PingFangTC-Ultralight.otf



由PingFang13.0d1e3转换得的字体:
SC:https://box.zjuqsc.com/-25438122
TC:https://box.zjuqsc.com/-07481936
HK:https://box.zjuqsc.com/-96653200
链接预计2017/12/07前可用,欢迎百度云分流

Viewing all articles
Browse latest Browse all 2498

Latest Images

Trending Articles