Good point. Maybe you could have modified the code a little to keep the
patterns around and save them  instead of the fully-specified font name, but
it's better to be more like WinBoard anyway.

With the changes I made, in the NLS case we end up saving the pattern lists
with just the desired pixel size filled in, not a fully-specified font name,
since there are multiple fonts in a FontSet (several if not all of which Xaw
may be using) and there isn't really a way to save all those names and
rebuild the FontSet from them. Normally XCreateFontSet will create the same
FontSet next time anyway.

On Tue, May 31, 2011 at 10:49 AM, <[email protected]> wrote:

> >
> > That's a feature that HG ported from winboard. The "sizeNNN:" in front
> > says "use this font only for square size NNN".  If you don't have the
> > "sizeNNN:"
> > there, xboard will use the font for whatever the current square size is.
> > But
> > when it saves settings, it saves the fonts only for the current square
> > size. This feature is more important in WinBoard where there is a font
> > selection dialog and you can change the fonts (and the square size too)
> > without exiting and restarting the program.
> >
>
> Short comment from the Ionian isle of Kefalonia:
>
> This turned out to be pretty essential when we started saving settings. At
> first I naively saved the font variables from appData. But it was the
> matched font that would be saved, not the template with all the
> wild-cards, meaning that it would have a specific point size. If you would
> then later start XBoard with another -size, you would get totally
> non-fitting characters with it, because the full specification would
> basically disable the entire font-selection process.
>
> So at first I just refrained from saving the -font options altogether.
>
> Then I tried this WinBoard-inspired solution of saving the matched fonts
> per size, so that they would not affect any other board size than the one
> in force during the original selection process.
>
>
> _______________________________________________
> Bug-XBoard mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/bug-xboard
>
_______________________________________________
Bug-XBoard mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-xboard

Reply via email to