mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Loading certain font files causes kernel panic https://github.com/siyuan-note/siyuan/issues/13739
This commit is contained in:
parent
72603bcfbf
commit
2aa264bbeb
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ func parseTTFFontFamily(fontPath string) (ret string) {
|
|||
defer logging.Recover()
|
||||
|
||||
fontFile, err := os.Open(fontPath)
|
||||
defer fontFile.Close()
|
||||
if err != nil {
|
||||
//LogErrorf("open font file [%s] failed: %s", fontPath, err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue