… | |
… | |
268 | bool load (const rxvt_fontprop &prop) |
268 | bool load (const rxvt_fontprop &prop) |
269 | { |
269 | { |
270 | width = 1; height = 1; |
270 | width = 1; height = 1; |
271 | ascent = 1; descent = 0; |
271 | ascent = 1; descent = 0; |
272 | |
272 | |
|
|
273 | set_name ("built-in pseudofont"); |
|
|
274 | |
273 | return true; |
275 | return true; |
274 | } |
276 | } |
275 | |
277 | |
276 | bool has_codepoint (uint32_t unicode) |
278 | bool has_codepoint (uint32_t unicode) |
277 | { |
279 | { |
… | |
… | |
311 | |
313 | |
312 | XSetForeground (d.display->display, GC, r->PixColors[fg]); |
314 | XSetForeground (d.display->display, GC, r->PixColors[fg]); |
313 | |
315 | |
314 | while (len--) |
316 | while (len--) |
315 | { |
317 | { |
|
|
318 | #if ENABLE_COMBINING |
316 | compose_char *cc; |
319 | compose_char *cc; |
|
|
320 | #endif |
317 | text_t t = *text++; |
321 | text_t t = *text++; |
318 | |
322 | |
319 | // is it in our linedrawing table? |
323 | // is it in our linedrawing table? |
320 | if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500]) |
324 | if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500]) |
321 | { |
325 | { |
… | |
… | |
350 | } |
354 | } |
351 | |
355 | |
352 | gcv.line_width = 0; |
356 | gcv.line_width = 0; |
353 | XChangeGC (d.display->display, GC, GCLineWidth, &gcv); |
357 | XChangeGC (d.display->display, GC, GCLineWidth, &gcv); |
354 | } |
358 | } |
|
|
359 | #if ENABLE_COMBINING |
355 | else if (IS_COMPOSE (t) && (cc = rxvt_composite[t])) |
360 | else if (IS_COMPOSE (t) && (cc = rxvt_composite[t])) |
356 | { |
361 | { |
357 | rxvt_font *f1 = (*fs)[fs->find_font (cc->c1)]; |
362 | rxvt_font *f1 = (*fs)[fs->find_font (cc->c1)]; |
358 | f1->draw (d, x, y, &(t = cc->c1), 1, fg, bg); |
363 | f1->draw (d, x, y, &(t = cc->c1), 1, fg, bg); |
359 | if (cc->c2 != NOCHAR) |
364 | if (cc->c2 != NOCHAR) |
… | |
… | |
364 | : (*fs)[fs->find_font (cc->c2)]; |
369 | : (*fs)[fs->find_font (cc->c2)]; |
365 | |
370 | |
366 | f2->draw (d, x, y, &(t = cc->c2), 1, fg, -1); |
371 | f2->draw (d, x, y, &(t = cc->c2), 1, fg, -1); |
367 | } |
372 | } |
368 | } |
373 | } |
|
|
374 | #endif |
369 | else |
375 | else |
370 | switch (t) |
376 | switch (t) |
371 | { |
377 | { |
372 | case ZERO_WIDTH_CHAR: |
378 | case ZERO_WIDTH_CHAR: |
373 | break; |
379 | break; |