simonsmh / notocjk

NotoSansCJK & NotoSerifCJK full weight patch for Android devices.
SIL Open Font License 1.1
478 stars 22 forks source link

fonts.xml 错误,NotoSerifCJK 与 NotoSansCJK 字重并非完全对应 #13

Closed laggardkernel closed 4 years ago

laggardkernel commented 4 years ago

脚本生成的 fonts.xml 根本不对,NotoSerifCJK 与 NotoSansCJK 字重并非完全对应。NotoSerif 拥有 semibold,extralight,但却没有 demilight, thin 字重。NotoSansCJK 拥有 Demilight, thin 却没有 Semibold, extralight.

以下是目前脚本生成的字体配置,

    <family lang="zh-Hans">
        <font weight="100" style="normal" index="2">NotoSansCJK-Thin.ttc</font>
        <font weight="100" style="normal" index="2" fallbackFor="georgia">NotoSerifCJK-Thin.ttc</font>
        <font weight="300" style="normal" index="2">NotoSansCJK-Light.ttc</font>
        <font weight="300" style="normal" index="2" fallbackFor="georgia">NotoSerifCJK-Light.ttc</font>
        <font weight="350" style="normal" index="2">NotoSansCJK-DemiLight.ttc</font>
        <font weight="350" style="normal" index="2" fallbackFor="georgia">NotoSerifCJK-DemiLight.ttc</font>
        <font weight="400" style="normal" index="2">NotoSansCJK-Regular.ttc</font>
        <font weight="400" style="normal" index="2" fallbackFor="georgia">NotoSerifCJK-Regular.ttc</font>
        <font weight="500" style="normal" index="2">NotoSansCJK-Medium.ttc</font>
        <font weight="500" style="normal" index="2" fallbackFor="georgia">NotoSerifCJK-Medium.ttc</font>
        <font weight="900" style="normal" index="2">NotoSansCJK-Black.ttc</font>
        <font weight="900" style="normal" index="2" fallbackFor="georgia">NotoSerifCJK-Black.ttc</font>
        <font weight="700" style="normal" index="2">NotoSansCJK-Bold.ttc</font>
        <font weight="700" style="normal" index="2" fallbackFor="georgia">NotoSerifCJK-Bold.ttc</font>
    </family>