From cd159b6775b16cc8c2449422a4ed0d0e9f66df57 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 18 Jun 2014 13:12:08 +0100 Subject: Don't display certain invisible characters. Fixes display of U+200E code points all over Google search results. --- framebuffer/framebuffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framebuffer/framebuffer.c') diff --git a/framebuffer/framebuffer.c b/framebuffer/framebuffer.c index 0115d838c..4cd064c34 100644 --- a/framebuffer/framebuffer.c +++ b/framebuffer/framebuffer.c @@ -140,6 +140,9 @@ static bool framebuffer_plot_text(int x, int y, const char *text, size_t length, ucs4 = utf8_to_ucs4(text + nxtchr, length - nxtchr); nxtchr = utf8_next(text, length, nxtchr); + if (!codepoint_displayable(ucs4)) + continue; + loc.x0 = x; loc.y0 = y; loc.x1 = loc.x0 + FB_FONT_WIDTH; -- cgit v1.2.3