--- rxvt-unicode/src/defaultfont.C 2004/03/04 20:09:01 1.35 +++ rxvt-unicode/src/defaultfont.C 2004/03/05 05:52:02 1.37 @@ -313,6 +313,7 @@ while (len--) { + compose_char *cc; text_t t = *text++; // is it in our linedrawing table? @@ -351,10 +352,19 @@ gcv.line_width = 0; XChangeGC (d.display->display, GC, GCLineWidth, &gcv); } - else if (IS_COMPOSE (t)) + else if (IS_COMPOSE (t) && (cc = rxvt_composite[t])) { - const compose_char &cc = rxvt_composite[t]; - (void)0; //D ADD pseudo handling here + rxvt_font *f1 = (*fs)[fs->find_font (cc->c1)]; + f1->draw (d, x, y, &(t = cc->c1), 1, fg, bg); + if (cc->c2 != NOCHAR) + { + // prefer font of first character, for no good reasons + rxvt_font *f2 = f1->has_codepoint (cc->c2) + ? f1 + : (*fs)[fs->find_font (cc->c2)]; + + f2->draw (d, x, y, &(t = cc->c2), 1, fg, -1); + } } else switch (t) @@ -1028,6 +1038,7 @@ else f = new rxvt_font_x11; + f->fs = this; f->set_term (r); f->set_name (strdup (name));