Skip to content

[BUG] Vite 插件超轻量优化产物遇到 OTS parsing error: glyf: zero-length table 错误 #211

@SamuNatsu

Description

@SamuNatsu

依然是在使用 NotoColorEmoji 字体遇到的问题,该字体本身仅包含 Emoji 以及部分 ASCII 字符,在超轻量优化下遇到中文字符产出了很多奇怪的空表分包字体,然后 Emoji 本身亦无法正常显示

Image

构建过程未报错

另外就是 Vite 插件的选项 scanFiles 感觉有些过于粗狂了,如果有针对不同字体文件字符集限制的分包字符过滤器啥的可能好一些

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions