summaryrefslogtreecommitdiff
path: root/framebuffer/framebuffer.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-06-18 13:12:08 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-06-18 13:13:44 +0100
commitcd159b6775b16cc8c2449422a4ed0d0e9f66df57 (patch)
tree50c27cc197fc734a123ad3740e1b7d58461d9850 /framebuffer/framebuffer.c
parent904cefd388aa613126b69c858e489c5867163a87 (diff)
downloadnetsurf-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.c3
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;