Collinsolas.sh: Fix Microsoft's broken Consolas font metrics.
Based in part on the hints in Greg Hurrell's post, this script edits the metrics for the Consolas font that ships with Microsoft Office to produce Collinsolas, a newly named version with improved baseline.
While this script could make the edits in-place, I chose to have it create a differently named font so I could leave the original intact. It's worth noting that a font's name does not come from its filename. There are special parts of the font file content that contain the name, so if you decide to change it, edit the script accordingly.
- A copy of the Consolas fonts
- xmlstarlet, installable via Homebrew with
brew install xmlstarlet
- fonttools
- Install the above requirements
- Copy the following files to the same directory as this script:
Consolas.ttf
Consolas Italic.ttf
Consolas Bold.ttf
Consolas Bold Italic.ttf
- Run
./collinsolas.sh
- Install the newly produced family of
Collinsolas
fonts