Python script to automatically set the OpenType OS/2 table Unicode range bit flags.
- Python 3.6+ interpreter
- fontTools Python package
Execute the src/set-unicoderange.py
script on the command line with one or more font path arguments.
$ python3 set-unicoderange.py [FONT PATH 1] (FONT PATH 2)...(FONT PATH n)
The script detects the code points available in the font and automatically sets the OpenType OS/2.ulUnicodeRange bit flags 1 - 4.
$ python3 set-unicoderange.py SomeFont-Regular.ttf
Apache License, Version 2.0. Please see LICENSE for details.