unicode-ranger-cli
Version:
A CLI for unicode-ranger
34 lines (23 loc) • 875 B
Plain Text
*----------------*
| UNICODE RANGER |
*----------------*
Generates valid unicode ranges for use in the unicode-ranges CSS property,
or font subsetting with pyftsubset by reading the content of a document.
Usage: unicode-ranger [urls]
*----------*
| EXAMPLES |
*----------*
For one URL:
unicode-ranger https://example.com
This command will produce output similar to something below:
U+A,U+20,U+2E,U+44-45,U+4D,U+54,U+59,U+61-69,U+6B-70,U+72-79
For multiple URLs, place URLs into a text file (one URL per line),
and specify the file instead of a URL:
unicode-ranger urls.txt
*------------*
| SUBSETTING |
*------------*
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='*'