diff options
author | B. Stack <bgstack15@gmail.com> | 2021-04-06 08:07:46 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-04-06 08:07:46 -0400 |
commit | daec8e16c2f2546c2ab3e78c93d77fe69f103b04 (patch) | |
tree | 352274049f905fd6092c1bc3bfeb139e33b73517 | |
parent | move get_session to top (diff) | |
download | save-webfonts-daec8e16c2f2546c2ab3e78c93d77fe69f103b04.tar.gz save-webfonts-daec8e16c2f2546c2ab3e78c93d77fe69f103b04.tar.bz2 save-webfonts-daec8e16c2f2546c2ab3e78c93d77fe69f103b04.zip |
update readme
-rw-r--r-- | README.md | 29 |
1 files changed, 15 insertions, 14 deletions
@@ -2,6 +2,11 @@ This `save-webfonts` script and accompanying library are designed to facilitate caching webfonts manually for approved sites. Many sites out there use fonts for interesting glyphs, so disabling webfonts is not a choice made for convenience but security. But for the sites you trust (or are willing to compromise for), you can run save-webfonts with those URLs, and save down the webfonts to your local user font cache. +## Features + +* Read css files from har file (web interaction replay log generated by a web browser) +* Convert woff, woff2, and eot down to ttf + ## Upstream [This repo](https://gitlab.com/bgstack15/save-webfonts) is the original source. @@ -35,27 +40,23 @@ Read the output of `./save-webfonts --help`, which is also provided here. ## Dependencies These are available as system packages in Fedora and Devuan. -* python3-beautifulsoup4 (aka python3-bs4) -* python3-tinycss2 - -## Bugs +Hard dependencies -* Wordpress's weirdness -Wordpress's css lets me manually inspect it but not use the whole script to indicate a single URL, and then list all CSS possible. -Visited in browser, logged in. Used developer tools, tab "Network", enabled CSS and Fonts. Found in the list, dashicons.min.css. -On python prompt: - - >>> savewebfonts_lib.get_webfonts_for_one_css("https://s2.wp.com/wp-includes/css/dashicons.min.css?m=1617198107h&ver=5.7.1-alpha-50603&wp-mce-49110-20201110") +* python3-beautifulsoup4 | python3-bs4 +* python3-tinycss2 -Found that a .ttf is listed. So manually wgeted that file, and saved it to ~/.local/share/fonts. +Recommends - wget --output=~/.local/share/fonts/dashicons.ttf 'https://s2.wp.com/wp-includes/fonts/dashicons.ttf?99ac726223c749443b642ce33df8b800' +* python3-fonttools +* libeot-tools | eot2ttf +## Bugs -* Some webfonts are only as data stored inline in the css directly, or svg only. +* Frontend does not support har files. You have to load the python library and call the function. ## Improve -Write a function that parses a HAR file! + +* Add harfile support to frontend script ## References None |