summaryrefslogtreecommitdiff
path: root/framebuffer/font_freetype.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-10 23:00:32 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-10 23:00:32 +0100
commit0210ef066b75da6ff2a91b5de9ad6d3f583548f2 (patch)
treeffd2a51466bc888c242d40ed7ebd2dcf030139a5 /framebuffer/font_freetype.c
parent69ad5db2d111b2af153ad63926ae5549c5dadb77 (diff)
parentd6b293001d67e71e751b1d54e4a9dc8529cd29d6 (diff)
downloadnetsurf-0210ef066b75da6ff2a91b5de9ad6d3f583548f2.tar.gz
netsurf-0210ef066b75da6ff2a91b5de9ad6d3f583548f2.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf into chris/palette-mapped-plotters
Diffstat (limited to 'framebuffer/font_freetype.c')
-rw-r--r--framebuffer/font_freetype.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/framebuffer/font_freetype.c b/framebuffer/font_freetype.c
index 581fd9a3d..c2279a116 100644
--- a/framebuffer/font_freetype.c
+++ b/framebuffer/font_freetype.c
@@ -396,7 +396,8 @@ FT_Glyph fb_getglyph(const plot_font_style_t *fstyle, uint32_t ucs4)
fb_face = (fb_faceid_t *)srec.face_id;
- glyph_index = FTC_CMapCache_Lookup(ft_cmap_cache, srec.face_id, fb_face->cidx, ucs4);
+ glyph_index = FTC_CMapCache_Lookup(ft_cmap_cache, srec.face_id,
+ fb_face->cidx, ucs4);
error = FTC_ImageCache_LookupScaler(ft_image_cache,
&srec,
@@ -406,6 +407,8 @@ FT_Glyph fb_getglyph(const plot_font_style_t *fstyle, uint32_t ucs4)
glyph_index,
&glyph,
NULL);
+ if (error != 0)
+ return NULL;
return glyph;
}