mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 Improve export PDF footer font
This commit is contained in:
parent
f213d55fa9
commit
2489633760
1 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,11 @@ var (
|
|||
|
||||
func GetPreferredFontFilePath(currentLanguage string) *Font {
|
||||
fonts := loadFonts(currentLanguage)
|
||||
|
||||
for _, font := range fonts {
|
||||
logging.LogInfof("font: %+v", font)
|
||||
}
|
||||
|
||||
sort.Slice(fonts, func(i, j int) bool { return len(fonts[i].Family) > len(fonts[j].Family) })
|
||||
for _, font := range fonts {
|
||||
if gulu.Str.Contains(font.Family, preferredFonts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue