mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🐛 Settings - Editor - Font is garbled on macOS https://github.com/siyuan-note/siyuan/issues/13713
This commit is contained in:
parent
4554290d7b
commit
666e89b26c
1 changed files with 0 additions and 5 deletions
|
|
@ -78,9 +78,6 @@ type Font struct {
|
|||
func loadFonts() (ret []*Font) {
|
||||
ret = []*Font{}
|
||||
for _, fontPath := range findfont.List() {
|
||||
if strings.Contains(fontPath, "AppData") {
|
||||
logging.LogInfof("skip font [%s]", fontPath)
|
||||
}
|
||||
if strings.HasSuffix(strings.ToLower(fontPath), ".ttc") {
|
||||
data, err := os.ReadFile(fontPath)
|
||||
if err != nil {
|
||||
|
|
@ -154,8 +151,6 @@ func loadFonts() (ret []*Font) {
|
|||
if sfnt.NamePreferredFamily == e.NameID && "" != val {
|
||||
family = val
|
||||
}
|
||||
} else {
|
||||
logging.LogInfof("skip font family [%s] [%+v]", fontPath, e)
|
||||
}
|
||||
}
|
||||
if "" != family && !strings.HasPrefix(family, ".") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue