diff options
author | B. Stack <bgstack15@gmail.com> | 2021-04-08 08:07:37 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-04-08 08:07:37 -0400 |
commit | 54ba30f87167f6e57b5e75c8e7c3e43d31b156ef (patch) | |
tree | 10c9136b524cb93908a0efb73772c40790e79fec | |
parent | abstract some inline-font helper logic (diff) | |
download | save-webfonts-54ba30f87167f6e57b5e75c8e7c3e43d31b156ef.tar.gz save-webfonts-54ba30f87167f6e57b5e75c8e7c3e43d31b156ef.tar.bz2 save-webfonts-54ba30f87167f6e57b5e75c8e7c3e43d31b156ef.zip |
-rwxr-xr-x | savewebfonts_lib.py | 3 |
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}") |