The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

pango fonts not working for me

asked 2014-07-14 09:17:20 +0000

alex gravatar image

Hi,

I'm playing with i3 for a few days now and I have a hard time using FreeType/Pango fonts.

According to the i3 user guide one of these should work:

font pango:DejaVu Sans Mono 10 font pango:DejaVu Sans Mono, Terminus Bold Semi-Condensed 11 font pango:Terminus 11px

But only X core fonts work for me.

I have ubuntu 12.04 installed and I'm wondering which packages I do need to have installed in order to use FreeType/Pango fonts?

Furthermore how can I check which FreeType/Pango fonts do exist on my machine?

Thanks in advance, Alex

edit retag flag offensive close merge delete

Comments

Try placing one (*only one*) of those font declarations in your config, grab the appropriate font online (they're all free fonts) and try again. In fact, chances are all those fonts are in your distribution's repositories.

ANOKNUSA gravatar imageANOKNUSA ( 2014-07-14 12:45:21 +0000 )edit

I tried a few fonts, that fc-list reported as being existent on my ubuntu 12.04 machine, but i3 always defaulted to the standard font. Since I found an X core font that suits my needs, I won't spend more time on this. I'm still grateful for your suggestions. Cheers, Alex

alex gravatar imagealex ( 2014-07-15 15:40:48 +0000 )edit

Is your version too old perhaps? Pango fonts only work from 4.3 onwards (with the xft: keyword) and the pango: keyword requires 4.4 or newer.

Michael gravatar imageMichael ( 2014-07-29 07:14:13 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-07-14 10:01:27 +0000

cee gravatar image

updated 2014-07-14 21:39:38 +0000

e.g. in my .i3/config i have following lines which work perfectly. for windows titles (default):

font pango:Source Code Pro for Powerline 10px

for bar {}:

font pango:Source Code Pro for Powerline 11

I don't know the exact difference between font definition with or without px. Maybe someone can shed some light on the differences.

A list of all installed fonts can be retrieved with fc-list. You could probably filter the list as of your likings. But unfortunately I don't know too much about fonts, to be of further help here.

Edit:
Here's a link to my dotfiles on github.

And there is that old thread I started once, that could need some love (-:

edit flag offensive delete link more

Comments

Please see my comment above and thanks for sharing your config.

alex gravatar imagealex ( 2014-07-15 15:43:26 +0000 )edit
0

answered 2014-07-21 21:13:53 +0000

alex gravatar image

Hi all,

after updating to Linux Mint 17 on my laptop I found out why the freetype fonts weren't working for me. The version of i3 shipped with Ubuntu 12.04/Mint 15 is just too old.

The version included in Mint 17 is 4.7.2 and freetype fonts are working great as does i3. :-)

Thanks, Alex

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-07-14 09:17:20 +0000

Seen: 1,250 times

Last updated: Jul 21 '14