simonsmh / notocjk

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

Serif字体除regular和bold都无法被调用 #23

Closed WordlessEcho closed 3 years ago

WordlessEcho commented 3 years ago

看起来和英文只有regular和bold字重这回事也有关系 Screenshot_20210410-020910_Font_Provider

WordlessEcho commented 3 years ago

我猜测如果把英文那部分的字重补全就能调用了,明天试一下 https://github.com/googlefonts/noto-fonts/tree/main/hinted/ttf/NotoSerif

WordlessEcho commented 3 years ago

我翻了一下FontProvider的源码

                textSerif100.setTypeface(Typeface.create("serif-thin", Typeface.NORMAL));

总之遇到的问题和 #18 是一样的,设置的如果是textFontWeight就正常

simonsmh commented 3 years ago

其实说白了,除了rikka没人用这么多字重,是谷歌的问题。= - =