diff options
Diffstat (limited to 'x.c')
| -rw-r--r-- | x.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1288,13 +1288,13 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x | |||
| 1288 | font = &dc.font; | 1288 | font = &dc.font; |
| 1289 | frcflags = FRC_NORMAL; | 1289 | frcflags = FRC_NORMAL; |
| 1290 | runewidth = win.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f); | 1290 | runewidth = win.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f); |
| 1291 | if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD)) { | 1291 | if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD || mode & ATTR_URL)) { |
| 1292 | font = &dc.ibfont; | 1292 | font = &dc.ibfont; |
| 1293 | frcflags = FRC_ITALICBOLD; | 1293 | frcflags = FRC_ITALICBOLD; |
| 1294 | } else if (mode & ATTR_ITALIC) { | 1294 | } else if (mode & ATTR_ITALIC) { |
| 1295 | font = &dc.ifont; | 1295 | font = &dc.ifont; |
| 1296 | frcflags = FRC_ITALIC; | 1296 | frcflags = FRC_ITALIC; |
| 1297 | } else if (mode & ATTR_BOLD) { | 1297 | } else if (mode & ATTR_BOLD || mode & ATTR_URL) { |
| 1298 | font = &dc.bfont; | 1298 | font = &dc.bfont; |
| 1299 | frcflags = FRC_BOLD; | 1299 | frcflags = FRC_BOLD; |
| 1300 | } | 1300 | } |
