[openbox] A bug in BFont.cc?
Ben Jansens
ben at orodu.net
Thu Jan 2 11:06:01 EST 2003
On Thu, Jan 02, 2003 at 11:16:15PM +0800, d2002xx wrote:
> Hello everybody!!
>
>
> It's in: (in openbox 2.2.2)
>
> /// BFont.cc First constructor /////
> #ifdef XFT
> BFont::BFont(Display *d, ...,
> ......
> ......)
> .........
> .........
> _valid = False;
>
>
> _xftfont = XftFontOpen(......
>
> if (! _xftfont)
> return;
>
> //////////////////////////////////////////////////////////////////////////////
> _font = XLoadQueryFont(...... ///// I found that the three lines may not be
> if (! _font) ///// necessary and cause xft not to work,
> return; ///// when the font name in font.dir is
> ////////////////////////////////////// different from the real name saved in
> // the font file (i.e. the name used by
> // xft). And some fonts that have odd
> // style names such as "book" or
> // "demibold" work properly after removing
> // the three lines.
> _valid = True;
> }
>
> /////////////////////////////////////////////
You're absolutely right. The BFont class has changed a bit and that
was used previously but not anymore. Thanks.
Ben
--
I am damn unsatisfied to be killed in this way.
http://www.icculus.org/openbox/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20030102/0eb0afa2/attachment.pgp>
More information about the openbox
mailing list