terminal: Don't try to render RLE used as a placeholder

weston-terminal uses RLE (U+202B) as a placeholder of the right half
of a double width character.  However, not all fonts include this
glyph and cairo renders it as .notdef (glyph index 0) in that case.
dev
Daiki Ueno 11 years ago committed by Kristian Høgsberg
parent 79d5a6ebe4
commit 56d8a7a155
  1. 6
      clients/terminal.c

@ -1094,6 +1094,12 @@ redraw_handler(struct widget *widget, void *data)
cairo_stroke(cr);
}
/* skip space glyph (RLE) we use as a placeholder of
the right half of a double-width character,
because RLE is not available in every font. */
if (p_row[col].ch == 0x200B)
continue;
glyph_run_add(&run, text_x, text_y, &p_row[col]);
}
}

Loading…
Cancel
Save