feat(字体管理): 完善可变字体嵌入与裁剪
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-10 23:38:30 +08:00
1 parent 63e56c5ab8
commit 051fc3b65e
8 files changed
+505 -5

No files matched your search

+4
View File
@@ -101,6 +101,10 @@ func (f FontFile) MissingGlyphs(index int, text string) (string, error) {
if err != nil {
return "", err
}
data, err = defaultCFF2Font(data)
if err != nil {
return "", err
}
sfnt, err := font.ParseSFNT(data, 0)
if err != nil {
return "", err