… | |
… | |
964 | const text_t *text, int len, |
964 | const text_t *text, int len, |
965 | int fg, int bg) |
965 | int fg, int bg) |
966 | { |
966 | { |
967 | clear_rect (d, x, y, r->TermWin.fwidth * len, r->TermWin.fheight, bg); |
967 | clear_rect (d, x, y, r->TermWin.fwidth * len, r->TermWin.fheight, bg); |
968 | |
968 | |
969 | if (!slow && width == r->TermWin.fwidth && 0) |
969 | if (0 && !slow && width == r->TermWin.fwidth) |
970 | { |
970 | { |
971 | if (sizeof (text_t) == sizeof (FcChar16)) |
971 | if (sizeof (text_t) == sizeof (FcChar16)) |
972 | XftDrawString16 (d, &r->pix_colors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar16 *)text, len); |
972 | XftDrawString16 (d, &r->pix_colors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar16 *)text, len); |
973 | else |
973 | else |
974 | XftDrawString32 (d, &r->pix_colors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar32 *)text, len); |
974 | XftDrawString32 (d, &r->pix_colors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar32 *)text, len); |
… | |
… | |
1215 | { |
1215 | { |
1216 | // search through the fallback list |
1216 | // search through the fallback list |
1217 | fonts.push_back (new_font (fallback->name, fallback->cs)); |
1217 | fonts.push_back (new_font (fallback->name, fallback->cs)); |
1218 | fallback++; |
1218 | fallback++; |
1219 | } |
1219 | } |
1220 | else |
1220 | else if (!bold) |
1221 | { |
1221 | { |
1222 | // try to find a new font. |
1222 | // try to find a new font. |
1223 | // only xft currently supported, as there is no |
1223 | // only xft currently supported, as there is no |
1224 | // way to configure this and xft is easier to hack in, |
1224 | // way to configure this and xft is easier to hack in, |
1225 | // while x11 has more framework in place already. |
1225 | // while x11 has more framework in place already. |