Help With Setfont Option in Sunclock Package

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

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

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

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.

Reply to
NotReal
Loading thread data ...

On Sun, 30 Sep 2018 15:25:15 -0000 (UTC), "NotReal" declaimed the following:

Note that an example of using setfont is IN the Sunclockrc file (used to set up Polish specific fonts)

formatting link

""" # Polish charset for ISO 8859-2 encoding. # proceed similarly for other languages # use a comma separated list of languages, e.g. pl,cz,hu setfont: menu|-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-2|pl setfont: clockstrip|-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-2|pl setfont: mapstrip|-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-2|pl setfont: city|-misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-2|pl setfont: coord|-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-2|pl """

Notice the use of a pipe character to separate the three argument fields -- NO SPACES.

--
	Wulfraed                 Dennis Lee Bieber         AF6VN 
	wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/
Reply to
Dennis Lee Bieber

formatting link

I had tried the pipes as you described early on without success but after looking at the the link you provided, I noticed that there was a colon after "setfont" in the example. There was a no mention of that in the man pages that I saw and I probably would have never have found it because all my web searches were in regard to the fonts themselves.

Thanks for taking the time to reply. You saved me from going down the wrong road for at least several more hours.

Reply to
NotReal

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.