Comments (18)
# SC as a example. They were same.
ttx -y 3 -t fvar NotoSansCJK-VF.ttc
<fvar>
<!-- Weight -->
<Axis>
<AxisTag>wght</AxisTag>
<Flags>0x0</Flags>
<MinValue>100.0</MinValue>
<DefaultValue>100.0</DefaultValue>
<MaxValue>900.0</MaxValue>
<AxisNameID>265</AxisNameID>
</Axis>
<!-- Thin -->
<!-- PostScript: NotoSansCJKscVF-Thin -->
<NamedInstance flags="0x0" postscriptNameID="267" subfamilyNameID="266">
<coord axis="wght" value="100.0"/>
</NamedInstance>
<!-- Light -->
<!-- PostScript: NotoSansCJKscVF-Light -->
<NamedInstance flags="0x0" postscriptNameID="269" subfamilyNameID="268">
<coord axis="wght" value="300.0"/>
</NamedInstance>
<!-- DemiLight -->
<!-- PostScript: NotoSansCJKscVF-DemiLight -->
<NamedInstance flags="0x0" postscriptNameID="271" subfamilyNameID="270">
<coord axis="wght" value="350.0"/>
</NamedInstance>
<!-- Regular -->
<!-- PostScript: NotoSansCJKscVF-Regular -->
<NamedInstance flags="0x0" postscriptNameID="273" subfamilyNameID="272">
<coord axis="wght" value="400.0"/>
</NamedInstance>
<!-- Medium -->
<!-- PostScript: NotoSansCJKscVF-Medium -->
<NamedInstance flags="0x0" postscriptNameID="275" subfamilyNameID="274">
<coord axis="wght" value="500.0"/>
</NamedInstance>
<!-- Bold -->
<!-- PostScript: NotoSansCJKscVF-Bold -->
<NamedInstance flags="0x0" postscriptNameID="277" subfamilyNameID="276">
<coord axis="wght" value="700.0"/>
</NamedInstance>
<!-- Black -->
<!-- PostScript: NotoSansCJKscVF-Black -->
<NamedInstance flags="0x0" postscriptNameID="279" subfamilyNameID="278">
<coord axis="wght" value="900.0"/>
</NamedInstance>
</fvar>
Tools: fonttools/fonttools: A library to manipulate font files from Python.
See also: fvar — Font Variations Table (OpenType 1.8.4) - Typography | Microsoft Docs
from notocjk.
https://issuetracker.google.com/issues/186033995
from notocjk.
参考wght值是多少?
from notocjk.
我只知道Source Han Sans有文档,第十页,关键词weights
https://github.com/adobe-fonts/source-han-sans/blob/release/SourceHanSansReadMe.pdf
from notocjk.
联动 #25 #21
v11 替换 NotoSansCJK Regular 字重后,在多字重效果仍在的同时, #25 的符号正常显示了,但也复现了 #21 的问题。这应该是VF字形缺失了部分字符,或是正常字形包含了不应该包含的字符导致的,但有没有什么更好的办法能临时解决这个问题?
from notocjk.
联动 #25 #21
v11 替换 NotoSansCJK Regular 字重后,在多字重效果仍在的同时, #25 的符号正常显示了,但也复现了 #21 的问题。这应该是VF字形缺失了部分字符,或是正常字形包含了不应该包含的字符导致的,但有没有什么更好的办法能临时解决这个问题?
VF字形缺失了部分字符
应该不是,可能是配置上的bug
我举个例子 ●(U+25CF)
<map code="0x25cf" name="H18533"/><!-- BLACK CIRCLE -->
有是有的,但是只有VF显示不出来这个字符,super OTC的就正常
正常字形包含了不应该包含的字符导致的
不仅是常规版本,VF版也有这个问题
再举一个例子 🆓(U+1F193)
2.003版本Noto Sans CJK (super OTC)
<map code="0x1f193" name="cid59356"/><!-- SQUARED FREE -->
从Android 11上复制出来的2.001版本Noto Sans CJK Regular (OTC)没有这个字符
from notocjk.
我刚刚试着把这两行放到比CJK更前的位置,但是没有用,所以我能想到的唯一办法就是重新编译字体了。
<family lang="und-Zsye">
<font weight="400" style="normal">NotoColorEmoji.ttf</font>
</family>
<family lang="und-Zsym">
<font weight="400" style="normal">NotoSansSymbols-Regular-Subsetted2.ttf</font>
</family>
from notocjk.
我刚刚测试了一下,如果把模块里的NotoSansCJK-Regular.ttc删掉,#21 就正常了
from notocjk.
最后的结论是,Android里的NotoSansCJK-Regular.ttc和noto-cjk上的是不一样的。如果要避免 #21 的问题,就是每次都修改字体,把这些特定的字符删掉
详见: notofonts/noto-cjk#191 (comment)
from notocjk.
搜索了一下,这是AOSP修改字体用的代码
https://android.googlesource.com/platform/external/noto-fonts/+/refs/heads/master/cjk/subset_noto_cjk.py
from notocjk.
感觉nototools有点bug,这个脚本没办法成功跑
from notocjk.
因为这段代码有点Python 2的历史,又缺乏维护,我修改了三处因为Python 3改动出现的问题,目前正在执行
from notocjk.
明天会想办法把改过的subset_noto_cjk.py
发出来,当然就算改过了还是有一些问题,不过影响不是很大,暂时没什么余力修。
大概会考虑修改成一个能用的工具再发布出来?还没想好用什么软件协议
from notocjk.
新的commit中,还是不要额外修改字体文件名比较好吧,这样可以直接对原文件进行替换来避免重复字体名产生冲突
from notocjk.
新的commit中,还是不要额外修改字体文件名比较好吧,这样可以直接对原文件进行替换来避免重复字体名产生冲突
行,但是麻烦你看一下actions,我好像没法用自动release?
from notocjk.
新的commit中,还是不要额外修改字体文件名比较好吧,这样可以直接对原文件进行替换来避免重复字体名产生冲突
行,但是麻烦你看一下actions,我好像没法用自动release?
action需要签tag才会自动release,等新版本准备好时我来签tag
from notocjk.
那你测试一下,我都弄好了
from notocjk.
variable版本传错了,传成了remove codepoints但还没加chws的版本
from notocjk.
Related Issues (20)
- 11版本无可变字重效果 HOT 15
- Noto Serif CJK 2.000 released! HOT 4
- Support `postScriptName` on Android 12 HOT 2
- android12 调用Google Sans Text的地方都没有多字重 HOT 21
- Android 12开启Magisk Hide及本模块后闪退 HOT 13
- (建议)Regular字重不使用可变字体(使用自带的NotoCJK文件) HOT 14
- [Feature] Add updateJson support HOT 3
- Google Sans customization xml 检查出错 HOT 11
- Android12的MIUI13 HOT 2
- 在不借助magisk的情况下可能实现本模块的效果吗 HOT 4
- 刷入模块时报错 HOT 1
- 一加 coloros 12 适配 HOT 8
- MIUI EU 套用失敗 HOT 2
- 在 Android 13 QPR1 Beta 2 上导致锁屏数字变为 Roboto HOT 7
- 能否向 LinageOS 等常见 Android ROM 提交补丁? HOT 8
- Noto Serif CJK发布2.002版本 HOT 2
- version.json里面的zipUrl还是指向的22版本
- [Feature Request / RFC] 配合 FontManagerService 将字体文件安装到 data 分区 HOT 12
- 一加修改 font.xml 修改到注释里 导致中文部分不生效
- Magisk Canary 不再支持从内部挂载点读取未经修改的文件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notocjk.