lxgw / lxgwwenkaigb Goto Github PK
View Code? Open in Web Editor NEWAn open-source Simplified Chinese font derived from Klee One.
License: SIL Open Font License 1.1
An open-source Simplified Chinese font derived from Klee One.
License: SIL Open Font License 1.1
如有未遵循 G 标的字形,请在此反馈,不要另开议题。
缺少全角单引号和双引号,无论中英文输入单引号、双引号都是半角的。按照中文习惯,应该是全角的。
您好,我用了两天这个字体觉得很不错,希望可以在终端环境下使用,但很多图标缺失导致没办法用。所以希望能给mono字体打上https://www.nerdfonts.com/ 补丁,适合在终端使用。谢谢。
之所以我不自己打是因为这个打补丁用的脚本貌似存在内存问题,不管我在16G还是32G的机器上都不能执行完成。
使用 ttx 导出 文楷 GB Regular v1.330,在运行到 cmap 表时会报错:
ERROR: An exception occurred during the decompilation of the 'cmap' table
Traceback (most recent call last):
File "fontTools\ttLib\ttFont.py", line 467, in _readTable
table.decompile(data, self)
File "fontTools\ttLib\tables\_c_m_a_p.py", line 179, in decompile
table.cmap = tables[seenOffsets[offset]].cmap
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "fontTools\ttLib\tables\_c_m_a_p.py", line 289, in __getattr__
self.ensureDecompiled()
File "fontTools\ttLib\tables\_c_m_a_p.py", line 278, in ensureDecompiled
self.decompile(None, None) # use saved data.
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "fontTools\ttLib\tables\_c_m_a_p.py", line 905, in decompile
delta = idDelta[i]
~~~~~~~^^^
IndexError: array index out of range
在十六进制编辑器中,查看报错处(cmap 表里的一张子表)的表头:
0004 1A26 0000 0EFA 0800 000A
根据 OpenType 规范文件 可知,表头说明子表 length 为 6694 (0x1A26) 个字节、segCount 为 3834(0x0EFA) / 2 = 1917。然而由文件结构的定义易知,若 segCount 无误,则 length 不应小于 segCount × 4 + 14 = 7682 个字节。
至于是 segCount 太大还是 length 太小:作为参考,字体丢进 FontCreator,不作任何手动修改,立即导出为 ttf。表头变成了
0004 3CFA 0000 0F22 0800 000A
segCount 跟原来的差不多,但 length 是原来的 2.3 倍有余。故怀疑目前的 length 偏小。
目前已测试 GB 版的三种字重均存在这一 bug。未测文楷的其余版本(无后缀版、屏显版、TC 版、Lite 版)。
这一 bug 会影响所有基于 ttx 的字体处理程序,比如一些字体子集化程序。
LaTeX 不能识别 LxgwWenkaiGB,但是可以识别 LxgwWenkai 和 LxgwWenkaiMonoGB。不知道什么原因,能解决一下么?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.