From daec8e16c2f2546c2ab3e78c93d77fe69f103b04 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 6 Apr 2021 08:07:46 -0400 Subject: update readme --- README.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b09bf19..c323c95 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit