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

+1 -1
View File
@@ -22,7 +22,7 @@ import "github.com/tdewolff/canvas"
// 返回: bool 是否加载成功
func (r *Renderer) loadDefaultFonts() bool {
for _, name := range fontDefaultSystemNames() {
if err := r.fontFamily.LoadSystemFont(name, canvas.FontRegular); err == nil {
if err := r.canvasState().fontFamily.LoadSystemFont(name, canvas.FontRegular); err == nil {
return true
}
}