A bug in BFont.cc?
d2002xx
d2002xx at fastmail.fm
Thu Jan 2 10:16:15 EST 2003
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;
}
/////////////////////////////////////////////
More information about the openbox
mailing list