|
|
|
@ -1550,7 +1550,7 @@ xinit(void) { |
|
|
|
|
initfonts(FONT, BOLDFONT); |
|
|
|
|
|
|
|
|
|
/* XXX: Assuming same size for bold font */ |
|
|
|
|
xw.cw = dc.font.rbearing - dc.font.lbearing; |
|
|
|
|
xw.cw = dc.font.rbearing - dc.font.lbearing; |
|
|
|
|
xw.ch = dc.font.ascent + dc.font.descent; |
|
|
|
|
|
|
|
|
|
/* colors */ |
|
|
|
@ -1626,7 +1626,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
XmbDrawImageString(xw.dpy, xw.buf, base.mode & ATTR_BOLD ? dc.bfont.set : dc.font.set, |
|
|
|
|
dc.gc, winx, winy, s, bytelen); |
|
|
|
|
dc.gc, winx, winy, s, bytelen); |
|
|
|
|
|
|
|
|
|
if(base.mode & ATTR_UNDERLINE) |
|
|
|
|
XDrawLine(xw.dpy, xw.buf, dc.gc, winx, winy+1, winx+width-1, winy+1); |
|
|
|
|