mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Improve export PDF footer font
This commit is contained in:
parent
87bdcaf0b6
commit
cd0fb32d38
1 changed files with 3 additions and 2 deletions
|
|
@ -54,12 +54,13 @@ func InstallPDFFonts() string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logging.LogInfof("installing fonts [%s]", strings.Join(fontPaths, ", "))
|
||||||
if err := api.InstallFonts(fontPaths); nil != err {
|
if err := api.InstallFonts(fontPaths); nil != err {
|
||||||
logging.LogErrorf("install font failed: %s", err)
|
logging.LogErrorf("install font [%s] failed: %s", strings.Join(fontPaths, ", "), err)
|
||||||
|
return getPreferredPDFWatermarkFont(names)
|
||||||
}
|
}
|
||||||
|
|
||||||
names = font.UserFontNames()
|
names = font.UserFontNames()
|
||||||
logging.LogInfof("pdf fonts [%s]", strings.Join(names, ", "))
|
|
||||||
return getPreferredPDFWatermarkFont(names)
|
return getPreferredPDFWatermarkFont(names)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue