TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: NOTREAL
date: 2018-09-30 15:25:00
subject: Help With Setfont Option

When I first ran sunclock from a terminal window, it ran and brought up
the sunclock screen in the GUI.  However there were several lines on
the terminal screen that said “’6x10’ not found using ‘Fixed’ “.
After trying a lot of different things including  “fc-cache”  I was
able to eliminate those messages but I was not happy with the size of
the time display on my 1920X1080 screen as the font was very small.
In looking for a way to change this, I found in the man pages that
there was an option called "setfont" that in theory would allow you to
change the fonts.   The syntax as explained is shown below.



-setfont  |{|}

Select the font for the given text field (clockstrip, menustrip, city,
coord, menu). Optionally, one can specify a list of languages for which
this font setting should apply. If the  option is  not
specified, the font setting applies to all languages.



That seemed straight forward so I started with something simple.  A
look inside sunclock.c indicated that the default font for the clock
display is “6x10” and default font for menu is “6x13”.   Based on this
I first tried the following as an option appended to the command line.


-setfont clockstrip 6x13


This resulted in the following error message


Incorrect -setfont specification
6x13: unknown option !!


I next tried it as an option in the rcfile.


setfont clockstrip 6x13


This resulted in the following error message.


Incorrect -setfont specification
Error in config file :
sunclock: option `6x13' (with no argument) incorrect
Recheck syntax of config file /home/pi/sunclock.config !!


Since then I have added more fonts to Raspbian so I have tried all
types of fonts.  I have tried using the font name as “fc-list” shows
it.   I have tried the name as “xlsfonts” shows it.  I have tried using
full paths.   I have used the font names as shown in the “fonts.dir”
and “fonts.alias” files.  Nothing I have tried has worked and I have no
idea what "argument" it wants.  I tried adding "en" after the font name
even though it is optional, but it did not help.

I have spent hours scanning the web and trying different things but at
this point I am not sure spending more time would result in a solution
as I find that using different search terms only brings up the same
web pages I have read previously .  I am not giving up just yet and will
keep looking but perhaps someone could save me some time.  Setfont is
obviously unhappy about something but I have no idea what it wants from
me to make it happy.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.