discuss-gnustep
[Top][All Lists]
Advanced

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

Re: font_cacher no longer being built/installed??


From: Alexander Malmberg
Subject: Re: font_cacher no longer being built/installed??
Date: Sun, 12 May 2002 18:27:47 +0200

> Hi,
> 
> I had a deeper look into the X font problem. This is caused by the
> massive restructuring that Adam is doing at the moment. As far as I can
[snip]

I've had a quick look at it too, and I've attached a patch that seems to
make it work. Fairly obvious changes, but I'm not sure they're strictly
correct (at least the change in XGFont.m).

- Alexander Malmberg
Index: back/Source/xlib/XGFont.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/back/Source/xlib/XGFont.m,v
retrieving revision 1.3
diff -u -r1.3 XGFont.m
--- back/Source/xlib/XGFont.m   11 May 2002 17:25:07 -0000      1.3
+++ back/Source/xlib/XGFont.m   12 May 2002 12:21:11 -0000
@@ -196,6 +196,11 @@
     onDisplay: (Display*) xdpy drawable: (Drawable) draw
         with: (GC) xgcntxt at: (XPoint) xp
 {
+  XGCValues gcv;
+  // Select this font, although it might already be current.
+  gcv.font = font_info->fid;
+  XChangeGC(xdpy, xgcntxt, GCFont, &gcv);
+
   // This font must already be active!
   XDrawString(xdpy, draw, xgcntxt, xp.x, xp.y, s, len);
 }
Index: back/Tools/GNUmakefile
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/back/Tools/GNUmakefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 GNUmakefile
--- back/Tools/GNUmakefile      27 Mar 2002 23:45:33 -0000      1.1.1.1
+++ back/Tools/GNUmakefile      12 May 2002 12:21:11 -0000
@@ -39,7 +39,7 @@
 gpbs_OBJC_FILES = gpbs.m
 font_cacher_OBJC_FILES = font_cacher.m
 
-ifneq ($(BUILD_X11),)
+ifeq ($(BUILD_GRAPHICS),xlib)
 TOOL_NAME += font_cacher
 gpbs_OBJC_FILES += xpbs.m 
 ifeq ($(BACKEND_BUNDLE),yes)

reply via email to

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