diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-06-18 13:12:08 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-06-18 13:13:44 +0100 |
commit | cd159b6775b16cc8c2449422a4ed0d0e9f66df57 (patch) | |
tree | 50c27cc197fc734a123ad3740e1b7d58461d9850 /framebuffer/framebuffer.c | |
parent | 904cefd388aa613126b69c858e489c5867163a87 (diff) | |
download | netsurf-cd159b6775b16cc8c2449422a4ed0d0e9f66df57.tar.gz netsurf-cd159b6775b16cc8c2449422a4ed0d0e9f66df57.tar.bz2 |
Don't display certain invisible characters.
Fixes display of U+200E code points all over Google
search results.
Diffstat (limited to 'framebuffer/framebuffer.c')
-rw-r--r-- | framebuffer/framebuffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |