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.
-
pipis 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
KernTableBotoxfolder to a chosen location on your computer. -
In the Terminal
cdto 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 .sudoruns 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,
cdto its location and run the following command (-Uis 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
KernTthentabfile 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.otfIt 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/folderThe 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 myOutputFolderThe -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 myOutputFolderThe --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