Nobody/Anonymous
-
2011-08-08
Some strings in rbc graphs fail to show the right font and/or fail to modify font size when requested. This turns out to be the result of using Tk_FontId (which returns a *drumroll* Tk fond id) to XDrawString. Instead, use XLoadFont to get the X font id.
But even that isn't enough. A previous version of this patch was sent to Robert Techentin but later found to cause some crashes. XLoadFont apparently needs to be followed by XUnloadFont. This required moving a little code around in rbcText.c. The attached patch hopefully fixes both problems.