You are not logged in.

#1 2007-08-08 06:31:35

doomed
Member
Registered: 2007-08-08
Posts: 7

problems with fonts

i'd like to use the terminus fonts in my DWM, but i can't see it through the program 'xfontsel' (it is recommended for wmii, so i think it'll be good for dwm too). i've installed terminus and artwiz fonts but none of them are in the xfontsel.
if i just input '-*-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-1' in my dwm config, it says that 'can't load font'
maybe the 'fixed' font would satisfied me, but my cyrillic looks wierd and ugly-bold
screen is low quality
http://i194.photobucket.com/albums/z239 … /scrot.png

any suggestion for terminus? or for fixed font?

Offline

#2 2007-08-08 08:27:30

prim
Member
From: Wroclaw - Poland
Registered: 2006-05-10
Posts: 47

Re: problems with fonts

Probably you have to enable bitmap fonts.


Feel free to correct my English

Offline

#3 2007-08-08 09:42:57

doomed
Member
Registered: 2007-08-08
Posts: 7

Re: problems with fonts

it says about file /etc/fonts/conf.d/10-bitmaps.conf, but i even don't have this

Offline

#4 2007-08-08 12:54:08

prim
Member
From: Wroclaw - Poland
Registered: 2006-05-10
Posts: 47

Re: problems with fonts

It looks like wiki is outdated and files have different names now.
You only have to create a symlink:

cd /etc/fonts/conf.d/
rm 70-no-bitmaps.conf
ln -s ../conf.avail/70-yes-bitmaps.conf

See the README file in /etc/fonts/conf.d/ for details.


Feel free to correct my English

Offline

#5 2007-08-08 12:55:00

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: problems with fonts

Have a look at /etc/fonts/conf.avail/README

But that only applies if you use fontconfig.
Afaik that is fontconfig / xft syntax :
xft:Terminus:size=12
and that is X one :
-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*

So dwm doesn't use fontconfig / xft stuff (you can also check this using ldd /usr/bin/dwm).
For enabling terminus font with X system, make sure you have the following line in the Files section of /etc/X11/xorg.conf :
FontPath   "/usr/share/fonts/local"

That's where the terminus font is installed (see pacman -Ql terminus-font)


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2007-08-08 17:06:09

doomed
Member
Registered: 2007-08-08
Posts: 7

Re: problems with fonts

after adding line
FontPath   "/usr/share/fonts/local" to my xorg.conf i've got hanging kdm and my dwm gives error 'couldn't load default font fixed', but after deleting this line its ok
maybe xft conflicts with /usr/share/fonts/local?

Section "Files"
#FontPath       "/usr/share/fonts/local"
    Fontpath    "/usr/share/fonts/X11/misc"
    Fontpath    "/usr/share/fonts/X11/cyrillic"
    Fontpath    "/usr/share/fonts/X11/100dpi/:unscaled"
    Fontpath    "/usr/share/fonts/X11/75dpi/:unscaled"
    Fontpath    "/usr/share/fonts/X11/Type1"
    Fontpath    "/usr/share/fonts/X11/100dpi"
    Fontpath    "/usr/share/fonts/X11/75dpi"
    # path to defoma fonts
    Fontpath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Offline

#7 2007-08-08 17:40:42

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: problems with fonts

Are you using arch or debian (or any debian based distribs) ?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2007-08-08 18:08:37

doomed
Member
Registered: 2007-08-08
Posts: 7

Re: problems with fonts

archlinux:)... but comrad with debian is using terminus in dwm without problems

Offline

#9 2007-08-08 19:06:33

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: problems with fonts

doomed wrote:

archlinux:)... but comrad with debian is using terminus in dwm without problems

That xorg.conf section you pasted is a debian like one, and is totally invalid in arch.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#10 2007-08-09 06:10:15

doomed
Member
Registered: 2007-08-08
Posts: 7

Re: problems with fonts

oh, could you contribute a right piece of xorg.conf?..
also, i have my terminus working in tty and in terminals/kde, but not like the '-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*' at all

Offline

#11 2007-08-09 07:22:25

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: problems with fonts

doomed wrote:

oh, could you contribute a right piece of xorg.conf?..
also, i have my terminus working in tty and in terminals/kde, but not like the '-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*' at all

Just look at /usr/share/fonts/
The fonts dir are in /usr/share/fonts , not /usr/share/fonts/X11

Also there are no defoma stuff.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#12 2007-08-09 08:09:47

doomed
Member
Registered: 2007-08-08
Posts: 7

Re: problems with fonts

thx, shining, after adding normal fonts pathes to xorg.conf i've got /usr/share/fonts/local with terminus working smile

Offline

Board footer

Powered by FluxBB