From: Scott Moynes Date: Wed, 16 Oct 2002 02:53:49 +0000 (+0000) Subject: make an *xft.flags: shadow flag to have per style resource shadows X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=be127cb4c6682ec1fa8e28e1668d8e332be69ac8;p=chaz%2Fopenbox make an *xft.flags: shadow flag to have per style resource shadows --- diff --git a/src/Screen.cc b/src/Screen.cc index 92f04532..4d15e28b 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -2732,15 +2732,18 @@ BFont *BScreen::readDatabaseFont(const string &rbasename, string family = s; bool bold = False; bool italic = False; + bool dropShadow = False; if (style.getValue(rbasename + "xft.flags", s)) { if (s.find("bold") != string::npos) bold = True; if (s.find("italic") != string::npos) italic = True; + if (s.find("shadow") != string::npos) + dropShadow = True; } 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()) return b; else