🐛 Loading certain font files causes kernel panic https://github.com/siyuan-note/siyuan/issues/13739

This commit is contained in:
Daniel 2025-01-06 22:13:38 +08:00
parent 72603bcfbf
commit 2aa264bbeb
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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