[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] A bug in BFont.cc?
From:       ben () orodu ! net (Ben Jansens)
Date:       2003-01-02 16:06:01
Message-ID: 20030102160601.GW13293 () orodu ! net
[Download RAW message or body]

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>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic