mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +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()
|
defer logging.Recover()
|
||||||
|
|
||||||
fontFile, err := os.Open(fontPath)
|
fontFile, err := os.Open(fontPath)
|
||||||
|
defer fontFile.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
//LogErrorf("open font file [%s] failed: %s", fontPath, err)
|
//LogErrorf("open font file [%s] failed: %s", fontPath, err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue