feat(后端结构): 完善多后端解耦,清理遗留代码
build.yaml / build (push) Successful in 40s

This commit is contained in:
xiaoqidun committed 2026-09-23 17:20:25 +08:00
1 parent 77ffbe6a72
commit c15547f0d2
27 files changed
+1166 -465

No files matched your search

+6 -2
View File
@@ -185,10 +185,14 @@ func (r *Renderer) fontGlyphRune(fontID string, glyphID int) (rune, bool) {
return 0, false
}
id := uint16(glyphID)
if mapped, ok := r.fontCIDMap[fontID][id]; ok {
prepared := r.preparedFonts[fontID]
if prepared == nil {
return 0, false
}
if mapped, ok := prepared.CIDs[id]; ok {
return mapped, true
}
if mapped, ok := r.fontGIDMap[fontID][id]; ok {
if mapped, ok := prepared.Glyphs[id]; ok {
return mapped, true
}
return 0, false