diff options
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1008,6 +1008,8 @@ xloadfonts(char *fontstr, double fontsize) win.ch = ceilf(dc.font.height * chscale); win.cyo = ceilf(dc.font.height * (chscale - 1) / 2); + borderpx = ceilf(((float)borderperc / 100) * win.cw); + FcPatternDel(pattern, FC_SLANT); FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC); if (xloadfont(&dc.ifont, pattern)) |