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 :-)

Screenshots:
  http://www.hta-bi.bfh.ch/~winkj/files/bbaa2.jpg
  http://www.hta-bi.bfh.ch/~winkj/files/bbaa4.jpg
(1400x1050)

Notes:
- I haven't done any Xlib nor blackbox programming before, so it's
  probably not 100 % optimized; but I believe that it's quite ok except
  for the menu drawing (where I could keep the XftDraw), but as far as I
  read here the menu code is heavily changed ATM and therefore I didn't
  want to invest too much time for this now. I didn't have any speed nor 
  memory leak problems so far, running it for a few days.
- I didn't have the time to look into the autoconf stuff yet, so it's
  patching the Makefile to link agains lXft. This has two consequences:
  1. you need to run configure, patch, make and make install (configure
     before patch)
  2. it won't check for availability of Xft support, so it might just
     not compile :-/ 
- it's not in #ifdef XFT's, and the indenting might be a bit messed up,
  because I didn't change my indent to 2 spaces... will do both if there
  is interest in this functionality
- it's against 0.62.1, tested on XFree 4.1 and 4.2

I tried hard to find out whether a font is supported, so it's not using
the (ugly) fallback truetype font for snap/gelly/etc. :-)

Instructions:
- recompile patched blackbox and restart
- select a style which uses truetype fonts 
  (or change one to use e.g. *font: Verdana-10:style=bold)
- enjoy

Find the Patch here:
  http://www.hta-bi.bfh.ch/~winkj/files/bbaa-current.patch

Maybe it's interesting for someone here... and course I would be great
to get some feedback :-)
Kind regards, Johannes

Reply via email to