feat(渲染能力): 完善字形解析与页面跳转

This commit is contained in:
xiaoqidun committed 2026-09-28 14:05:41 +08:00
1 parent e20167bc3a
commit f11e00631e
4 files changed
+141 -7

No files matched your search

+5
View File
@@ -203,6 +203,11 @@ func subsetSourceSFNTFont(data []byte, usage *editorFontUsage) []byte {
mapping[char] = id
}
}
for id := 0; id < int(sfnt.NumGlyphs()); id++ {
if _, err := trueTypeGlyphData(sfnt.Tables, uint16(id)); err != nil {
return nil
}
}
for id := range glyphs {
if id >= sfnt.NumGlyphs() {
return nil