On Monday 16 June 2003 22:47, Johannes Winkelmann wrote: > Hi Bradley, > > On Mon, Jun 16, 2003 at 17:25:13 +0200, Bradley T Hughes wrote: > > non-developers are probably interested in this as well... so here > > you go... note: this is against cvs and may break, so use the patch > > at your > > own risk! it is simply a prototype at the moment, and will need > > work before it is ready for committing. > > That's great news for us AA addicts :-) > > I just did a test run with blackbox-cvs-xft, and it works quite > nicely. I wasn't using bb-cvs before, but I might do so more often > now now that I can get AA fonts. > > One thing I dislike a bit is that it always uses Xft to draw fonts, > even if the requested (non-truetype/type1) font can't be found (as > XftFontOpen will return the default font; at least it used to be this > way). This is a major drawbacks IMHO as I really want to have my pcf > fonts sometimes. > > During the 0.65.0pre series, I wrote some patches [1] to enable Xft, > where I used XftListFonts to determine whether the requested font is > available. If not, it wouldn't use the default Xft font but try to > load it the traditional (non Xft) way. I'm not sure how others look > at this, but I'd really like Blackbox 0.70 to support both AA and > non-AA fonts without changing a flag (xft on/off), just trying a bit > harder to really use the font defined in the style. Well, those were > just my two cents ;-)
I agree with you, we should definately find a way to determine if a particular font is available or not... but unfortuantely Xft behaves differently from the X11 protocol. However, we do have a way to do this: the format of the font name. Xft (more appropriately, fontconfig) doesn't use XLFDs to describe fonts (thankfully), so we can determine if a particular fontname is an XLFD and use core X11 fonts if it is, otherwise fallback to Xft. This will provide compatibility with all of the existing styles out there as well. ;) > Best regards and thank you for a very nice window manager, > Johannes > > References: > 1 > http://www.hta-bi.bfh.ch/~winkj/files/bbaa-0.65.0-patches/bbaa-pre1-1 >.patch -- > Johannes Winkelmann mailto:[EMAIL PROTECTED] > Biel, Switzerland http://jw.tks6.net -- Bradley T. Hughes - bhughes at trolltech.com Trolltech AS - Waldemar Thranes gt. 98 N-0175 Oslo, Norway -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] List archives: http://asgardsrealm.net/lurker/splash/index.html Trouble? Contact [EMAIL PROTECTED]
