Hi,

On Wed, 15 May 2002 15:45:40 +0200
Johannes Winkelmann <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> While checking the various forks of blackbox I saw the anti aliased
> fonts in waimea, and being an anti aliasing addict I decided to try this
> in blackbox as well (guided by the AA-patch against aewm)... just for
> the fun of having (and doing) it :-)
...

I'm also trying to do this in secret and here are
some comments/ideas on looking your patch at a
glance.

- it seems your patch doesn't support multibyte
charaters; ex. only using XftDrawString8() 
(aewm also lacks this).

- aewm is too much simple / icewm has better
implementation.

- I have some incomplete xft patches and part of 
attached patches perhaps become your help; ex. to 
implement the autoconf stuff.

- possiblly font handling parts should be separated
from each src and integrated into Font class in
Font.*, I think (and I stopped coding at this point).


Now I don't have much time to write code :(, so I'm 
also looking forward your work ;)

thanks,
SATO Satoru
diff -uNr src.org/BaseDisplay.cc src/BaseDisplay.cc
--- src.org/BaseDisplay.cc      Sat Apr 20 22:23:28 2002
+++ src/BaseDisplay.cc  Sun Apr 21 14:00:07 2002
@@ -235,6 +235,12 @@
   shape.extensions = False;
 #endif // SHAPE
 
+#ifdef XFT
+  render.extensions = XQueryExtension(display, "RENDER", &render.opcodes,
+                 &render.event, &render.error);
+#else
+  render.extensions = False;
+#endif // XFT
   XSetErrorHandler((XErrorHandler) handleXErrors);
 
   screenInfoList.reserve(number_of_screens);
diff -uNr src.org/BaseDisplay.hh src/BaseDisplay.hh
--- src.org/BaseDisplay.hh      Sat May  4 08:22:31 2002
+++ src/BaseDisplay.hh  Sat May  4 12:14:43 2002
@@ -27,6 +27,9 @@
 extern "C" {
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>
+#ifdef XFT
+#  include <X11/Xft/Xft.h>
+#endif // XFT
 }
 
 #include <vector>
@@ -48,6 +51,13 @@
   };
   BShape shape;
 
+#ifdef XFT
+  struct BRender {
+               Bool extensions;
+               int opcode, event, error;
+       };
+       BRender render;
+#endif // XFT
   unsigned int MaskList[8];
   size_t MaskListLength;
 
@@ -84,6 +94,10 @@
 
   inline Bool hasShapeExtensions(void) const
     { return shape.extensions; }
+#ifdef XFT
+       inline Bool hasRenderExtensions(void) const
+               { return render.extensions; }
+#endif // XFT
   inline Bool doShutdown(void) const
     { return _shutdown; }
   inline Bool isStartup(void) const

Attachment: xft-20020504.diff2
Description: Binary data

Reply via email to