Skip to content

Python script to automatically set OpenType OS/2 table Unicode range bit flags in fonts

License

Notifications You must be signed in to change notification settings

source-foundry/set-unicoderange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

set-unicoderange

Python script to automatically set the OpenType OS/2 table Unicode range bit flags.

Dependencies

Usage

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. If any code point is found in a range, the corresponding range bit is set. If there are no code points in a range, the corresponding range bit is cleared.

The font write is in place on the path that you enter on the command line.

Example

$ python3 set-unicoderange.py SomeFont-Regular.ttf

Changes

Please see the CHANGELOG.md.

License

Apache License, Version 2.0. Please see LICENSE for details.

About

Python script to automatically set OpenType OS/2 table Unicode range bit flags in fonts

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages