feat(后端架构): 完善后端解耦
build.yaml / build (push) Successful in 39s

This commit is contained in:
xiaoqidun committed 2026-09-23 16:12:57 +08:00
1 parent 73472c5d4b
commit 77ffbe6a72
56 files changed
+2420 -1635

No files matched your search

+4 -5
View File
@@ -298,11 +298,10 @@ func (r *Renderer) fontInfo(font Font) FontInfo {
}
return info
}
if source, family := r.fontSourceMatch(font.ID, &font); family != nil {
info.Matched = source.name
face := fontFaceInfo(family.Face(12, canvasFontStyle(&font)).Font.SFNT.Tables["name"], source.face)
info.MatchedFace = &face
if source.exact {
if resolved, err := r.ResolveFont(font.ID, false); err == nil && resolved.Source != "" {
info.Matched = resolved.Source
info.MatchedFace = resolved.Face
if resolved.Exact {
info.Status = FontStatusMatched
info.Detail = "使用外部字体文件"
} else {