PDA

View Full Version : How to enable the "Luxi Mono" font under FC6?



daihard
1st May 2007, 08:05 AM
Hi.

I am using KDE 3.5.6 w/ Fedora Core 6. I'd like to use Luxi Mono as my default fixed-width font. I know the font is installed. I can invoke gvim with that font by running "gvim -font Luxi\ Mono\ 9".

However, the "font" section of KDE Control Center does not show "Luxi Mono" under the "Fixed width fonts" (second from the top). The same thing happens with the "konsole" settings. The default fixed-width font is "Monospace," which used to look identical to Luxi Mono but now looks much rounder, which I totally hate. If there's no way to include "Luxi Mono" in the list of fixed-width fonts, is it at least possible to do some kind of font substitution so when I choose "Monospace," Luxi Mono will be used instead?

TIA,
Dai

RupertPupkin
1st May 2007, 08:34 PM
Hmm, are you sure you have the Luxi Mono fonts installed? I believe that Luxi Mono will be aliased to Monospace if it's not installed. Run this command in a terminal window:

rpm -ql xorg-x11-fonts-truetype

That should show you this:

/usr/share/X11/fonts
/usr/share/X11/fonts/TTF
/usr/share/X11/fonts/TTF/luximb.ttf
/usr/share/X11/fonts/TTF/luximbi.ttf
/usr/share/X11/fonts/TTF/luximr.ttf
/usr/share/X11/fonts/TTF/luximri.ttf
/usr/share/X11/fonts/TTF/luxirb.ttf
/usr/share/X11/fonts/TTF/luxirbi.ttf
/usr/share/X11/fonts/TTF/luxirr.ttf
/usr/share/X11/fonts/TTF/luxirri.ttf
/usr/share/X11/fonts/TTF/luxisb.ttf
/usr/share/X11/fonts/TTF/luxisbi.ttf
/usr/share/X11/fonts/TTF/luxisr.ttf
/usr/share/X11/fonts/TTF/luxisri.ttf

If all that is there, then maybe fontconfig doesn't know that /usr/share/X11/fonts/TTF is one of the directories to search in for TrueType fonts.

Seve
1st May 2007, 08:37 PM
Hello Dai:
I hate to suggest this, however, pop into Gnome and try and set it there first.
I appears to work :)

Seve

daihard
2nd May 2007, 12:09 AM
Hmm, are you sure you have the Luxi Mono fonts installed? I believe that Luxi Mono will be aliased to Monospace if it's not installed. Run this command in a terminal window:

rpm -ql xorg-x11-fonts-truetype

That should show you this:

/usr/share/X11/fonts
/usr/share/X11/fonts/TTF
/usr/share/X11/fonts/TTF/luximb.ttf
/usr/share/X11/fonts/TTF/luximbi.ttf
/usr/share/X11/fonts/TTF/luximr.ttf
/usr/share/X11/fonts/TTF/luximri.ttf
/usr/share/X11/fonts/TTF/luxirb.ttf
/usr/share/X11/fonts/TTF/luxirbi.ttf
/usr/share/X11/fonts/TTF/luxirr.ttf
/usr/share/X11/fonts/TTF/luxirri.ttf
/usr/share/X11/fonts/TTF/luxisb.ttf
/usr/share/X11/fonts/TTF/luxisbi.ttf
/usr/share/X11/fonts/TTF/luxisr.ttf
/usr/share/X11/fonts/TTF/luxisri.ttf
Hi RupertPumpkin.

Thanks for the suggestion. Yes, the output from "rpm -ql" looks exactly like yours. In fact, like I said, I can run gvim with Luxi Mono by explicitly setting the guifont parameter to point to it.

I will try what Seve has suggested and see how it works.

Thanks,
Dai

daihard
2nd May 2007, 12:28 AM
Hello Dai:
I hate to suggest this, however, pop into Gnome and try and set it there first.
I appears to work :)
Hi Seve.

Would you mind showing the exact steps I should take? I went into Gnome, selected "Preferences" --> "Fonts", and selected "Luxi Mono" for the fixed width font. I then logged back into KDE. Nothing has changed here. Konsole still won't display "Luxi Mono" in its font selection dialog. Any idea?

Thanks,
Dai

Seve
2nd May 2007, 12:58 AM
Hello Dai:

Mmmm ....
I think you have got it .... It's what I have done to seemingly make it work, at least for me .. ?
A little bit confused why it doesn't work for you ?

Try opening a terminal ... say in Gnome and then pick

Edit/Profiles/Default/General/
Then under Font [you may have to un-click] Use the system terminal font
Pick your font, close and restart

Seve

daihard
3rd May 2007, 01:59 AM
Try opening a terminal ... say in Gnome and then pick

Edit/Profiles/Default/General/
Then under Font [you may have to un-click] Use the system terminal font
Pick your font, close and restart
Hi Seve.

I take it you mean "gnome-terminal" when you say "terminal"? Will it have any effect on Konsole, which I use? I will try it anyways.