aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-04-08 08:07:37 -0400
committerB. Stack <bgstack15@gmail.com>2021-04-08 08:07:37 -0400
commit54ba30f87167f6e57b5e75c8e7c3e43d31b156ef (patch)
tree10c9136b524cb93908a0efb73772c40790e79fec
parentabstract some inline-font helper logic (diff)
downloadsave-webfonts-master.tar.gz
save-webfonts-master.tar.bz2
save-webfonts-master.zip
add data:font/ttf;base64,HEADmaster
-rwxr-xr-xsavewebfonts_lib.py3
1 files changed, 2 insertions, 1 deletions
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}")
bgstack15