Re: 1.4.5.55N & font mangle
Ethan Fischer (allanon@u.washington.edu)
Mon, 18 May 1998 03:24:25 -0700 (PDT)
> I use xfstt (0.9.8) to serve TrueTypeFonts to X, and now since
> moving to 1.4.5.55N this evening; the Font for the menu automagically gets
> switched to WindowFont. I'm uncertain if this is due to xfstt, as it has
> been working fine the past 2 days in 1.4.5.3/4 . The menu appears to
> "think" it's displaying the Font for the menuitems as the width remains
> the same, and since the WindowFont is wider than Font; some of the text
> disappears past the edge. Upon changing the Font and WindowFont back to
> non-TTF fonts, this still occurs. It's not right away, but after about
> 20-30 seconds. Very peculiar.
Hmmm. Well, I may have messed up. ;) Looks like PaintEntry isn't setting
the global GC mask before it uses it. Since that mask doesn't usually
include GCFont, the font won't change... most of the time. Are you using
textured window title text by any chance? Anyway, try the following one-
line patch to src/afterstep/menus.c, and tell me if it fixes your problem.
------ snip here --------------------------------
--- old/menus.c Mon May 18 03:54:23 1998
+++ menus.c Mon May 18 03:59:26 1998
@@ -464,6 +464,7 @@
/* setup our GC */
Globalgcv.foreground = colors.fore;
Globalgcv.background = colors.back;
+ Globalgcm = GCForeground | GCBackground;
XChangeGC(dpy, Scr.ScratchGC1, Globalgcm, &Globalgcv);
currentGC = Scr.ScratchGC1;
if (Textures.Mtype < 129)
------ snip here --------------------------------
> Concerning this new devel version: It is superb! Kudos to Mr.
> Ethan Fischer and Guylhem (and all the others who put this new ver out the
> door) - the root pixmap function is excellent!!
::laugh:: Flattery will get you anywhere. ;)
----
Ethan Fischer
allanon@u.washington.edu
http://weber.u.washington.edu/~allanon