Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Dejavu Sans not listed by xlsfonts and missing in xfontsel

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
novak
Posts: 7
Joined: 2013-05-04 20:00
Location: Prague, Czech Republic

Dejavu Sans not listed by xlsfonts and missing in xfontsel

#1 Post by novak »

Hi everybody,

I'd like to use truetype font Dejavu Sans in the lock screen of xscreensaver. Unfortunately, this font wasn't listed by

Code: Select all

xlsfonts
:(

The standard path of Dejavu Sans in Debian Wheezy is

Code: Select all

/usr/share/fonts/truetype/ttf-dejavu
I checked if this font path was available to the X server with

Code: Select all

xset q
, but apparently wasn't :!:

Possible solution I found:

Code: Select all

sudo mkfontscale /usr/share/fonts/truetype/ttf-dejavu
sudo mkfontdir /usr/share/fonts/truetype/ttf-dejavu
xset fp+ "/usr/share/fonts/truetype/ttf-dejavu"
Then, Dejavu Sans was finally present in

Code: Select all

xfontsel
To add this font path permanently, I created

Code: Select all

/usr/share/X11/xorg.conf.d/04-fonts.conf
with the following content:

Code: Select all

Section "Files"
  FontPath "/usr/share/fonts/truetype/ttf-dejavu"
EndSection
Now my questions arise: Is it a correct way how to do it in Debian? Why aren't all truetype fonts registered with the old core X font system by default?

Thanks :)

Leviathan1
Posts: 6
Joined: 2013-05-02 15:27

Re: Dejavu Sans not listed by xlsfonts and missing in xfonts

#2 Post by Leviathan1 »

Hi,

There are different technologies for drawing fonts.

The old legacy system has bitmap fonts that are drawn by the Xserver, from the fonts available in the fontpath of the server.
This is used by xlsfonts, xfontsel...

Truetype fonts are drawn on the client side and use libraries like fontconfig, freetype, cairo ..... The X server only has to display the image data
prepared by the client. You can view these fonts with fc-list, gnome-font-viewer;./.

kk_storm
Posts: 5
Joined: 2013-04-08 10:15

Re: Dejavu Sans not listed by xlsfonts and missing in xfonts

#3 Post by kk_storm »

novak, man, thank you so much!
I was going crazy why the freshly installed fonts wouldn't appear in xlsfonts while are seen in fc-list and couldn't be used (and they were important for my OSD signals hehe) :D

Post Reply