From 54ba30f87167f6e57b5e75c8e7c3e43d31b156ef Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 8 Apr 2021 08:07:37 -0400 Subject: add data:font/ttf;base64, --- savewebfonts_lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'savewebfonts_lib.py') diff --git a/savewebfonts_lib.py b/savewebfonts_lib.py index 1046bf1..81009be 100755 --- a/savewebfonts_lib.py +++ b/savewebfonts_lib.py @@ -172,7 +172,8 @@ def save_font(url,destdir,config): filename = ttfify_filename(filename) if url.startswith("data:"): - for fheader in ["data:application/x-font-woff;charset=utf-8;base64,","data:application/x-font-ttf;charset=utf-8;base64,","data:application/font-woff;charset=utf-8;base64,"]: + # FINDTHIS data + for fheader in ["data:application/x-font-woff;charset=utf-8;base64,","data:application/x-font-ttf;charset=utf-8;base64,","data:application/font-woff;charset=utf-8;base64,","data:font/ttf;base64,"]: if url.startswith(fheader): need_convert, ext, tf, filename = save_inline_font_helper(fheader, url) #print(f"TEMP: FOR {url}, {need_convert} {ext} {tf} {filename}") -- cgit