summaryrefslogtreecommitdiff
path: root/framebuffer/font_internal.h
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/font_internal.h
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/font_internal.h')
-rw-r--r--framebuffer/font_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/framebuffer/font_internal.h b/framebuffer/font_internal.h
index 236183ace..ead179c99 100644
--- a/framebuffer/font_internal.h
+++ b/framebuffer/font_internal.h
@@ -19,6 +19,8 @@
#ifndef NETSURF_FB_FONT_INTERNAL_H
#define NETSURF_FB_FONT_INTERNAL_H
+#include <stdbool.h>
+
struct fb_font_desc {
const char *name;
int width, height, pitch;
@@ -39,5 +41,8 @@ enum fb_font_style fb_get_font_style(const plot_font_style_t *fstyle);
const uint8_t * fb_get_glyph(uint32_t ucs4, enum fb_font_style style);
+#define codepoint_displayable(u) \
+ (!(u >= 0x200b && u <= 0x200f))
+
#endif /* NETSURF_FB_FONT_INTERNAL_H */