Ever wanted to examine the content of a URL (or URLs) and get unicode ranges that you can use in a CSS
unicode-range statement? Or for font subsetting? Now you can.
Usage and examples
unicode-ranger is very easy:
If you only have one URL, just pass it in:
This command will produce output similar to something below:
For multiple URLs, place URLs into a text file (one URL per line), and specify the file instead of a URL:
If you have
pyftsubset installed from the
fonttools Python package, you can use the output of this program to subset a font like so:
pyftsubset font.ttf --unicodes=`echo $(unicode-ranger https://example.com)` --output-file=font.ttf --name-IDs='*'
This program is just a CLI interface for
unicode-ranger, so if there are problems with the program, they're likely due to problems in the underlying module, so log an issue over there. If you want to contribute, just fork this CLI (or the module) and send me a PR and I'll review it.