Giter Club home page Giter Club logo

lxgwwenkaigb's Introduction

lxgwwenkaigb's People

Contributors

lxgw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

lxgwwenkaigb's Issues

缺少全角单引号和双引号

缺少全角单引号和双引号,无论中英文输入单引号、双引号都是半角的。按照中文习惯,应该是全角的。

可否提供打了nerd font图标补丁的版本?

您好,我用了两天这个字体觉得很不错,希望可以在终端环境下使用,但很多图标缺失导致没办法用。所以希望能给mono字体打上https://www.nerdfonts.com/ 补丁,适合在终端使用。谢谢。

之所以我不自己打是因为这个打补丁用的脚本貌似存在内存问题,不管我在16G还是32G的机器上都不能执行完成。

cmap 表里的子表长度数据 小于实际值

使用 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

LaTeX 不能识别 LxgwWenkaiGB,但是可以识别 LxgwWenkai 和 LxgwWenkaiMonoGB。不知道什么原因,能解决一下么?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.