Your New Monospace Font: Hack

A few cycles ago the VDG asked for the default Plasma font to be changed from Oxygen, a custom made but poorly maintained font for Plasma, to Noto.  Noto is a Google project which is intended to provide complete Unicode coverage.  It is based off Google’s Droid font for Latin and some other fonts for other scripts.  But it lacked a monospace font which is important to us hackers who likes to use a console and write code in it.

Annoyingly all fonts are poorly organised in interesting and mysterious ways.  In the case of Noto people think there’s a mono font because there does exist Noto Mono CJK but of course that’s only for oriental languages.  But search around a bit more and the Mono font is in the Git repository where it was committed at the start of the year only it’s not available in the download options on the website.  Some distros package it straight from Git because the website download is incomplete but then some don’t.  But trying it out a problem cropped up, there’s no Bold variant of the font which is used for highlighting in Kate and to some extent in consoles.

Looking around Adobe has Source Code Pro, a freely licenced font that contains all the goodness but many distros don’t package it.  The tools used to create it are non-free but for fonts I’ve never seen a package which actually compiles the font from source.  Even if the tools are free they’re as bad with their release management as you can imagine: for years Font Forge’s maintained website wasn’t findable with Google.  When I was doing the build system of Oxygen Font I had an option to use Font Forge but the default was just to copy the TTF files directly.  A TTF file can be opened and edited so it can be considered a “preferred modifiable form” which is what free software distros need to ship it.  Regardless if there’s no packages then it won’t get used so Source Code Pro isn’t an option.

Which is when a nice Debian spod pointed out Hack, an openly developed font using widely supported formats and tools based off Bitstream and DejaVu’s earlier work.  It supports lots of scripts, has bold and Italics and is widely packaged.  So I updated Plasma Integration, the Qt plugin to make Qt stuff look like Plasma stuff, to use Hack.  I also added kconf-update scripts to update old apps to Hack: Plasma’s new monospace font, coming in Plasma 5.8.

How Hack looks in Kate with source code

And for comparison, Oxygen Mono and Noto Mono without bold.

 

Facebooktwittergoogle_pluslinkedinby feather

19 Comment

Leave a Reply

Spam-proofing. What is 4 + 4?