mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 09:37:26 +08:00
1 parent
77ffbe6a72
commit
c15547f0d2
27 files changed
+1166
-465
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user