✅ 🥳 不止中文,只要是包内的字符,统统分包 #110
Answered
by
KonghaYao
wanghaisheng
asked this question in
Q&A
-
这个包内的字符,包有格式限制吗 字符呢 有大神解释下不 |
Beta Was this translation helpful? Give feedback.
Answered by
KonghaYao
Dec 17, 2024
Replies: 1 comment 4 replies
-
字体需要为 otf 或者是 ttf 字体,均为常见的字体形式。字符是直接读取字体内部的所有字符,然后进行处理的。由于我们使用的是业内常用的字体渲染工具 harfbuzz 进行子集化,所以常见的 feature 也都会被纳入分包的范围。 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码里面是操作与分配 unicode 字符,harfbuzz 会自动关联 glyph 并抽取出来。想要表达的意思是,不只中文范围内的 unicode 字符可以抽取,阿拉伯、藏文、壮语的字符都会纳入分包范围。