Mathieu Reguer
The following external package are required: fonttools
, click
.
This required package will be intalled automatically with the following instalation process:
Just press enter
in the terminal after each of the commands below to launch them.
-
pip
is a handy tool to easily install python packages. You propbably already have it, you can just skip to step 2. Come back here if it does not work. If you do not have it, run the following command (you will be asked for your pasword):sudo easy_install pip
-
Copy the whole
KernTableBotox
folder to a chosen location on your computer. -
In the Terminal
cd
to this location. Just typecd
, add a space, and drag and drop the folder in the Terminal window. It should look like this. Press enter.cd path/to/KernTableBotox/
-
Then run the following command
sudo -H pip install .
sudo
runs the command with admin priviledge, you will be asked your password. The password will be invisible. -
Done! If everything worked, you should be abble to run the following command in the terminal:
KernTableBotox --help
-
To update the tool, just copy the updated package to your computer,
cd
to its location and run the following command (-U
is for update):sudo -H pip install -U .
Once the tools are intalled, their name can be autocompleted in the Terminal window by pressing the tab
key.
- Typing
KernT
thentab
file automatically complete toKernTableBotox
KernTableBotox is a command to inject an old school flat
. kern table into compile fonts.
It will parse the modern OpenType Kerning data, flatten all the pairs and inject them in a kern
table. This is mostly useful for PowerPoint kerning support. Yay.
The number of pairs should not matters, KernTableBotox will create the required subtables. The more pairs you have the bigger the font will get though.
KernTableBotox path/to/my/font.otf
It works on both font files and folder. If you feed it a path to a folder instead of a font file, it will run for every otf in that folder
KernTableBotox path/to/my/folder
The fonts are saved in the same folder, with the _kerntable
suffix unless an output directory is specified (see below)
The -o
(or --output_dir
) option can be used to specify a name for the output directory.
KernTableBotox path/to/my/folder -o myOutputFolder
The -t
(or --suffix_tag
) option can be used to specify another suffix for the font files.
KernTableBotox path/to/my/folder -t my_cool_suffix myOutputFolder
The --no_suffix
option can be used to prevent the use of a suffix. The font will be saved in place (if -o
is not set to another directory).
KernTableBotox path/to/my/folder --no_suffix my_cool_suffix myOutputFolder