I'm using Ubuntu 12.04 with some KDE programs: kate and yakuake. Neither of these programs will render bold font. Instead, the font appears as "Regular". How can I fix this?
The image below shows an example of Kate rendering python with the stock python highlighting (the colors are inverted using CompizConfig Settings Manager's Negative option). The following words should have appeared bold:
- class
- def
- __init__
- lambda
- +
Similarly Yakuake (or perhaps, the underlying Konsole) is not rendering bold. My LS_COLORS includes: di=01;34 (bold blue)
Below is my gnome-terminal rendering bold fonts just fine.
Best Answer
It's been a while since you asked but I had the same problem and got to the bottom of it.
Short version
$ sudo rm /etc/fonts/conf.d/60-droid-sans-mono-fonts.conf
(this is just a symlink so no actual configuration files are lost).Long version
The package
ttf-droid
got replaced byfonts-droid
. With that the symlink60-ttf-droid-sans-mono-fonts.conf
in the folder /etc/fonts/conf.d/ got renamed to60-droid-sans-mono-fonts.conf
. That means that the configuration in that file is now read before all configuration in60-latin.conf
and thus overriding it. The font alias Monospace (which is used by default in Yakuake and Kate) is defined as alias to DejaVu Sans Mono in 60-latin.conf, but Droid Sans Mono in 60-droid-sans-mono-fonts.conf. Incidentally, that font does not have a bold version, at least not the files in the fonts-droid package. So everywhere where Yakuake and Kate are supposed to render bold letters the rendering falls back to the regular version of the font.If you do not want to change the setting system wide you could instead add your own alias to Monospace in ~/.fonts.conf. This should work:
You can take a look at all the files in /etc/fonts/conf.avail and the fonts.conf manpage to see what else you can put into your .fonts.conf.