beremiz

SVGHMI: fix font embedding with py3

2024-04-24, Edouard Tisserant
6750083ae878
Parents 62d04933d569
Children 8072072038d2
SVGHMI: fix font embedding with py3
--- a/svghmi/fonts.py Mon Apr 15 09:09:59 2024 +0200
+++ b/svghmi/fonts.py Wed Apr 24 17:02:28 2024 +0200
@@ -56,7 +56,7 @@
"data:",
mimetype,
";base64,",
- b64encode(data).strip()])
+ b64encode(data).decode().strip()])
def GetCSSFontFaceFromFontFile(filename):
familyname, uniquename, formatname, mimetype = GetFontTypeAndFamilyName(filename)