make an *xft.flags: shadow flag to have per style resource shadows

This commit is contained in:
Scott Moynes 2002-10-16 02:53:49 +00:00
parent b3b0926fe1
commit be127cb4c6

View file

@ -2732,15 +2732,18 @@ BFont *BScreen::readDatabaseFont(const string &rbasename,
string family = s; string family = s;
bool bold = False; bool bold = False;
bool italic = False; bool italic = False;
bool dropShadow = False;
if (style.getValue(rbasename + "xft.flags", s)) { if (style.getValue(rbasename + "xft.flags", s)) {
if (s.find("bold") != string::npos) if (s.find("bold") != string::npos)
bold = True; bold = True;
if (s.find("italic") != string::npos) if (s.find("italic") != string::npos)
italic = True; italic = True;
if (s.find("shadow") != string::npos)
dropShadow = True;
} }
BFont *b = new BFont(blackbox->getXDisplay(), this, family, i, bold, BFont *b = new BFont(blackbox->getXDisplay(), this, family, i, bold,
italic, resource.shadow_fonts, resource.aa_fonts); italic, dropShadow, resource.aa_fonts);
if (b->valid()) if (b->valid())
return b; return b;
else else