I'm using the newest yab desklet, and I'm encountering a
problem configuring the font. I'm not sure if the problem is
specific to the desklet or the adesklet program, so I figured
I'd post it here.
When I change the font setting ("caption_font" and
"caption_size") directives/variables, I always get an error.
When I use "Verdana" and any size, I get this error:
dean@dh1:yab> ADESKLETS_ID=0 python yab.py
Traceback (most recent call last):
File "yab.py", line 598, in ?
Events(dirname(__file__)).pause()
File "yab.py", line 190, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "yab.py", line 233, in ready
adesklets.context_set_font(
File "/usr/lib/python2.3/site-packages/adesklets/commands.py", line 696, in load_font
return comm.out()
File "/usr/lib/python2.3/site-packages/adesklets/commands_handler.py", line 103, in out
raise ADESKLETSError(4,message)
adesklets.error_handler.ADESKLETSError: adesklets command error - font 'Verdana/12' could not be loaded
When I use any font name with spaces, I get:
dean@dh1:yab> ADESKLETS_ID=0 python yab.py
Traceback (most recent call last):
File "yab.py", line 598, in ?
Events(dirname(__file__)).pause()
File "yab.py", line 190, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "yab.py", line 233, in ready
adesklets.context_set_font(
File "/usr/lib/python2.3/site-packages/adesklets/commands.py", line 696, in load_font
return comm.out()
File "/usr/lib/python2.3/site-packages/adesklets/commands_handler.py", line 103, in out
raise ADESKLETSError(4,message)
adesklets.error_handler.ADESKLETSError: adesklets command error - font description incorrect - should be `name/size'
I'd like to be able to use other fonts than the provided
"Vera" font, but I can't get it to work. I assumed since
adesklets uses fontconfig that I would have no problems using
font names as they are listed in `fc-list`.