make an *xft.flags: shadow flag to have per style resource shadows
Scott Moynes smoynes@nexus.carleton.ca
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
src/Screen.cc
→
src/Screen.cc
@@ -2732,15 +2732,18 @@ style.getValue(rbasename + "xft.size", i)) {
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