Chu Shogi Kanji Color

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Chu Shogi Kanji Color

Postby Gabriel_Ruan » 23 Sep 2018, 17:06

Hi. Is there any way to change the kanji font color to something other than dark blue? I tried every variable containing a #, including /fontPieceForeColor, but no dice. Thanks so much! Have a great day.
Posts: 3
Joined: 22 Sep 2018, 23:41

Re: Chu Shogi Kanji Color

Postby H.G.Muller » 26 Sep 2018, 08:00

Alas, currently not. I implemented the printing of these kanji in the 'Alien Edition' of WinBoard as a quick hack, and I hard-coded the colors as dark blue / bright red depending on whether the piece was a promoted one.

This could of course be easily changed, by making the color dependent on an option. Perhaps the best way would be to introduce two new options for this, /kanjiColor and /kanjiPromoColor. The latest regular edition of XBoard now has a similar functionality, where an external option can specify overprinting of piece images with arbitrary (unicode) characters. (This to avoid the GUI would need any built-in knowledge of Shogi variants.) I think I hard-coded the colors there too, as black and bright red. This could implement similar options to control these colors.

I will work on it.
User avatar
Posts: 3110
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Return to Winboard and related Topics

Who is online

Users browsing this forum: Google [Bot] and 4 guests