Dejavu Sans not listed by xlsfonts and missing in xfontsel

Kernels & Hardware, configuring network, installing services

Dejavu Sans not listed by xlsfonts and missing in xfontsel

Postby novak » 2013-05-08 13:15

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 :)
novak
 
Posts: 7
Joined: 2013-05-04 20:00
Location: Prague, Czech Republic

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

Postby Leviathan1 » 2013-05-11 17:31

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;./.
Leviathan1
 
Posts: 6
Joined: 2013-05-02 15:27

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

Postby kk_storm » 2014-04-23 10:28

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
kk_storm
 
Posts: 5
Joined: 2013-04-08 10:15


Return to System configuration

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable
cron