FS#28204 - [xboard] Fonts and ChessProgram settings.

Attached to Project: Community Packages
Opened by Karol Błażewicz (karol) - Wednesday, 01 February 2012, 00:40 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 24 February 2012, 00:30 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

With the default settings it's impossible to properly start xboard. First you get
xboard: no fonts match pattern -*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*"

error and after you set some proper fonts, you're greeted with
xboard: Failed to start first chess program fairymax on localhost: fairymax: No such file or directory

In the PKGBUILD we already do some fairymax -> gnuchess conversion. Wold it be possible to do the same for the /etc/xboard.conf config?

The fonts issues are not terribly hard to figure out, but a post_install message would surely help.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 24 February 2012, 00:30 GMT
Reason for closing:  Fixed
Comment by Karol Błażewicz (karol) - Wednesday, 22 February 2012, 14:31 GMT
  • Field changed: Percent Complete (100% → 0%)
The error is still present:
xboard: Failed to start first chess program fairymax on localhost: fairymax: No such file or directory

In order to successfully start xboard, I have to edit /etc/xboard.conf and change '-firstChessProgram fairymax' to '-firstChessProgram gnuchess'.

Should I open a new bug report for this?
Comment by Karol Błażewicz (karol) - Wednesday, 22 February 2012, 17:33 GMT
The fonts errors are still there too.

I added
-font "size108:-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-1"
-clockFont "size108:-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859- 1"
-coordFont "size108:-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859- 1"

to /etc/xboard.conf and it worked. These settings were copied to ~/.xboardrc that was automatically created when the program run successfully.


That's not much of a fix, as not everyone uses terminus, but maybe you can pick some stock fonts this way.
Comment by Sergej Pupykin (sergej) - Thursday, 23 February 2012, 01:13 GMT
fairymax problem was fixed in 4.5.2-4.

Do you have some output in "xlsfonts | grep helvetica-bold-r-normal" ? It should work now with default font settings.

I have done:
4996 xlsfonts | grep -- helvetica-bold-r-normal
4997 sudo pacman -R xboard
4998 rm ~/.xboardrc
4999 sudo pacman -U xboard-4.5.2-4-x86_64.pkg.tar.xz
5000 xboard
and it works.
Comment by Karol Błażewicz (karol) - Thursday, 23 February 2012, 11:24 GMT
It works only after a reboot.

Can you please refresh my memory why is a reboot needed or what configuration am I missing?
After
- pacman -Rns xboard (removes xboard and xorg-fonts)
- reboot
- pacman -S xboard

xboard throws the fonts error and xlsfonts doesn't show helvetica. After a reboot 'xlsfonts | grep -- helvetica-bold-r-normal' returns a lot of stuff and now xboard just works.
Now (i.e. after a reboot, when it's working fine) if I remove xboard and install it back
- pacman -Rns xboard
- pacman -S xboard
it still works.

This doesn't seem to be an error with xboard anymore so you can close this report, I'm just curious what am I missing. Thanks for fixing xboard :-)
Comment by Sergej Pupykin (sergej) - Thursday, 23 February 2012, 13:29 GMT
It looks like something related to xorg and fonts configuration problem. May be only Xorg restarting was enough.
Comment by Karol Błażewicz (karol) - Thursday, 23 February 2012, 14:15 GMT
Restarting X is enough indeed.

Thanks to xorg-fonts-* , text on websites looks like shit so I may just use 'pacman -Sdd xboard' ;P

Loading...