[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-XBoard] [bug #33241] xboard quits with "Unable to create font s

From: h.g. muller
Subject: Re: [Bug-XBoard] [bug #33241] xboard quits with "Unable to create font set."
Date: Wed, 18 May 2011 14:57:59 +0200

At 22:42 17-5-2011 -0700, Tim Mann wrote:
It looks like we need to change FindFont to just return the fontset, then change the rest of the code to set fontSet resources using that value instead of setting font resources.  That looks like it will be a fair amount of work to carry through fully. Maybe it's best to nuke all the old code in the process instead of trying to carry it around and make it still work if compiling without ENABLE_NLS defined.

Would this really require a lot of work? The current version uses 3 fonts: clocks, board coordinates, and the rest. clockFont is used in only two widgets, which explicitly mention an XtNfont arg at their creation. The coordFont is only used for rendering text in the graphical board widget, for which it is turned into a GC (coordGC). All the other stuff seems to be handled in bulk, by the single call:

    XrmPutStringResource(&xdb, "*font", appData.font);

Couldn't we simply change that call to

    XrmPutStringResource(&xdb, "*fontSet", fntSet);

to acheive what we want? (And of course make sure fntSet used in FindFont is a global variable.)
reply via email to

[Prev in Thread] Current Thread [Next in Thread]