View Single Post
Old 11-21-2018, 05:18 AM   #22
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,746
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by un_pogaz View Post
[...] 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:
Code:
pyftsubset --help
You also might want to check out the Calibre subsetting tool, which can also be used in batch files/shell scripts.
Doitsu is offline   Reply With Quote