Quote:
Originally Posted by un_pogaz
[...] could you create a script based on your plugin or fontTools?
|
The fontTools developers have already created a command line tool for font subsetting:
pyftsubset.
To use it, you'll need to:
1.
Install Python.
2. Install fontTools as an administrator using pip:
pip install FontTools
The syntax is:
Code:
pyftsubset font-file --text=<text>
or
Code:
pyftsubset font-file --text-file=<path>
For more information on the available options enter:
You also might want to check out the
Calibre subsetting tool, which can also be used in batch files/shell scripts.