[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cvs update
From: |
Jeff Teunissen |
Subject: |
Re: cvs update |
Date: |
Thu, 08 Nov 2001 20:07:10 -0500 |
Fred Kiefer wrote:
>
> Hi Stefan,
>
> > I've update from CVS and got the error below (which compiling xgps).
> > Seems like the type Bool is undefined/wrongly defined. Did somebody
> > else see this or should I dig in my own configuration (since I
> > reconfigured a lot recently).
>
> looks like I did cause this problem, by adding Anti-Alias font support
> to GNUstep. The log entry for this is also missing, due to a CVS access
> problem.
>
> The X header files that are included seem to cause this problem. So I
> need to know which Xfree86 release you are using. I don't get those
> problemes with 4.1.0. I already did pay special attention so that the X
> headers are included before any Obj-C headers, so that BOOL is not
> redefined, so I don't see where this may still be comming from.
>
> You can work around this problem by changing the entry WITH_XFT in some
> config.* file from yes to no. Sorry as I don't have access to GNUstep
> code right now, I cannot be more specific, but you will find it.
I just enabled this in my local installation, and I must say it looks very
nice. The clipping is quite messy, but it does indeed look very nice. :)
Here's a patch to add support for a GSFontAntiAlias boolean default to the
XGPS backend. Very small patch, dependant on HAVE_XFT.
--
| Jeff Teunissen -=- Pres., Dusk To Dawn Computing -=- deek @ d2dc.net
| GPG: 1024D/9840105A 7102 808A 7733 C2F3 097B 161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project http://www.quakeforge.net/
| Specializing in Debian GNU/Linux http://www.d2dc.net/~deek/
? Source/config.h
Index: Source/XGDrawingEngine.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/xgps/Source/XGDrawingEngine.m,v
retrieving revision 1.65
diff -u -r1.65 XGDrawingEngine.m
--- Source/XGDrawingEngine.m 2001/11/08 18:35:42 1.65
+++ Source/XGDrawingEngine.m 2001/11/09 00:57:28
@@ -58,8 +58,12 @@
[NSGraphicsContext setDefaultContextClass: [XGContext class]];
[GSFontEnumerator setDefaultClass: [XGFontEnumerator class]];
- [GSFontInfo setDefaultClass: [XGFontInfo class]];
-// [GSFontInfo setDefaultClass: [XftFontInfo class]];
+#if HAVE_XFT
+ if ([[NSUserDefaults standardUserDefaults] boolForKey: @"GSFontAntiAlias"])
+ [GSFontInfo setDefaultClass: [XftFontInfo class]];
+ else
+#endif
+ [GSFontInfo setDefaultClass: [XGFontInfo class]];
/* Creating the context automatically makes it the default one */
[XGContext graphicsContextWithAttributes: nil];