Change font in scripts

Hi again! I’ve been using this script sometime, well I’m trying to change the font, but I always see the same font

[code]WindowTitle {FvwmDate}
WindowSize 120 18 # Taille
WindowPosition 0 0 # Position
#ForeColor {black}
#BackColor {grey85}
#ShadowColor {grey55}
#HilightColor {grey100}
Colorset 35
Font “xft:HandelMod:pixelsize=12”

Init
Begin
Set $AHour=(GetOutput {date ‘+%d %b %Y’} 1 -1)
Set $AHour2=(GetOutput {date ‘+%H:%M’} 1 -1)
ChangeTitle 1 $AHour
ChangeTitle 2 $AHour2
End

PeriodicTasks
Begin
If (RemainderOfDiv (GetTime) 60)==0 Then
Begin
Set $AHour=(GetOutput {date ‘+%d %b %Y’} 1 -1)
Set $AHour2=(GetOutput {date ‘+%H %M’} 1 -1)
ChangeTitle 1 $AHour
ChangeTitle 2 $AHour2
End
End

Widget 1
Property
Size 80 18
Position 0 0
Colorset 32
Font “xft:HandelMod:pixelsize=12”
Flags Right
Type ItemDraw
Title {OK}
End

Widget 2
Property
Size 40 18
Position 80 0
Colorset 32
Font “xft:HandelMod:pixelsize=12”
Flags Right
Type ItemDraw
Title {OK}
End[/code]

any ideas?

And with the gulivert’s temp script I have another problem. The script is this:

[code]# Script for name Kernel

By Gulivert

http://www.clan-hash.com/~guli/fvwm/

WindowTitle {FvwmTemp2}
WindowSize 38 24 # Taille
WindowPosition 0 0 # Position
#ForeColor {black}
#BackColor {grey85}
#ShadowColor {grey55}
#HilightColor {grey100}
Colorset 35
Font “xft:HandelMod:pixelsize=12”

Init
Begin
Set $temp2=(GetOutput {cat /sys/bus/i2c/devices/0-0290/temp2_input|cut -b 1,2} 1 -1)
Set $tempc=°C
ChangeTitle 1 $temp2
ChangeTitle 2 $tempc
End

PeriodicTasks
Begin
If (RemainderOfDiv (GetTime) 30)==0 Then
Begin
Set $temp2 = (GetOutput {cat /sys/bus/i2c/devices/0-0290/temp2_input|cut -b 1,2} 1 -1)
ChangeTitle 1 $temp2
End
End

Widget 1
Property
Size 18 24
Position 0 0
Colorset 32
Font “xft:HandelMod:pixelsize=12”
Flags Left
Type ItemDraw
Title {OK}
End

Widget 2
Property
Size 20 24
Position 18 0
Colorset 32
Font “xft:HandelMod:pixelsize=12”
Flags Left
Type ItemDraw
Title {OK}
End[/code]

The device exists, see:

blue@att ~$ cat /sys/bus/i2c/devices/0-0290/temp1_input | cut -b1,2 30

The FVWM config is this:

*macDock: (38x22+318+0, Padding 2 0, Frame 0, Swallow (UseOld, NoClose) FvwmTemp2 `FvwmScript FvwmTemp2 30`)
But when I load Fvwm, the temp isnt’ in the box :frowning:

Thanks in advance

As I said in the Gentoo forum your font lines seem correct to me, other than that I use ‘size’ and not ‘pixelsize’ if Fvwm howerver is looking for a different name than you expect it to it might not find the fond, try looking in the error log (~/.xsession-errors if you start Fvwm with xdm), that might also give you a clue about your second problem :slight_smile:

hth

Bert

thanks a lot, finally I get work mi favourite font looking the xsession-errors :smiley: