dzen2 - use of fonts
Posted: Thu 03 Jan 2013, 11:05
Using Dpup Exprimo 5.X.3.4.12
dzen is a configurable, flexible utility to show text on screen or even menu's.
I can't choose other fonts than 'fixed' in dzen2, though fc-list and xfontsel show fonts like courier, dejavu sans, nimbus etc.
I have not been able to find a solution. There's Archlinux info, but that doesn't suit Puppy. Does someone know how to select other fonts?
For example:
#echo "Hello World" | dzen2 -fn "DejaVu Sans" -p' gives an error: cannot load font 'DejaVu Sans'. With 'fixed' font it works.
Programmatically, a line could look as follows:
awk ..... { print x | "dzen2 | -fn '-*-fixed-bold-r-*-*-24-*-*-*-*-*-*-*' -fg white -bg black -h 30 -ta l -x 0 -y 574 -w 800" }
That works with the fixed font, but not with others. By the way, the (terrible) -*-*-*-* thing is produced by xfontsel but unforunately I cannot select/copy from xfontsel, but that's another matter.
I suspect dzen looks for fonts in a Puppy place that's not the same as in Archlinux but I don't know for sure....
Attached pets of dzen2 (standard package) and dzen2g (dzen gadgets).
Any help appreciated....
PS I wanted to upload dzen2 pets but it's too slow right now. I'll try again later.
dzen is a configurable, flexible utility to show text on screen or even menu's.
I can't choose other fonts than 'fixed' in dzen2, though fc-list and xfontsel show fonts like courier, dejavu sans, nimbus etc.
I have not been able to find a solution. There's Archlinux info, but that doesn't suit Puppy. Does someone know how to select other fonts?
For example:
#echo "Hello World" | dzen2 -fn "DejaVu Sans" -p' gives an error: cannot load font 'DejaVu Sans'. With 'fixed' font it works.
Programmatically, a line could look as follows:
awk ..... { print x | "dzen2 | -fn '-*-fixed-bold-r-*-*-24-*-*-*-*-*-*-*' -fg white -bg black -h 30 -ta l -x 0 -y 574 -w 800" }
That works with the fixed font, but not with others. By the way, the (terrible) -*-*-*-* thing is produced by xfontsel but unforunately I cannot select/copy from xfontsel, but that's another matter.
I suspect dzen looks for fonts in a Puppy place that's not the same as in Archlinux but I don't know for sure....
Attached pets of dzen2 (standard package) and dzen2g (dzen gadgets).
Any help appreciated....
PS I wanted to upload dzen2 pets but it's too slow right now. I'll try again later.