Set the font family when applying custom font

main
Bob Mottram 2020-05-26 21:23:38 +01:00
parent b107668452
commit 77dd1f3b7a
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ def setCustomFont(baseDir: str):
customFontExt + customFontExt +
"') format('" + "') format('" +
customFontType + "')") customFontType + "')")
css = setCSSparam(css, "*font-family", "'CustomFont'")
filename = baseDir + '/' + filename filename = baseDir + '/' + filename
with open(filename, 'w') as cssfile: with open(filename, 'w') as cssfile:
cssfile.write(css) cssfile.write(css)