Change properties of ttf-fonts
You need docker to be installed
- Clone this repo OR download
.zip
here and unarchive it - Open Terminal
cd ttf-properties-changer
- Run
./ttf-properties-change FILE XML_KEY ATTRIBUTE VALUE
. Now you have newttf
file in current directory.
Example:
./ttf-properties-change ~/Downloads/martian-mono-0.9.2-ttf/MartianMono-CnxBd.ttf "/post/isFixedPitch" value 1
Change properties in a several files
for file in $(find .ttf ~/Downloads/martian-mono-0.9.2-ttf/) do
./ttf-properties-change $file "/post/isFixedPitch" value 1
done