Page 1 of 1

Chu Shogi Kanji Color

PostPosted: 23 Sep 2018, 17:06
by Gabriel_Ruan
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.

Re: Chu Shogi Kanji Color

PostPosted: 26 Sep 2018, 08:00
by H.G.Muller
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.