From a730b2ffe9c93505c1e0dce363aa631bfb381a5d Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Mon, 21 May 2012 21:05:36 +0100 Subject: [PATCH] bug 756850 - HBGetGlyph callback for harfbuzz needs to return whether the glyph existed. r=smontagu --- gfx/thebes/gfxHarfBuzzShaper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/thebes/gfxHarfBuzzShaper.cpp b/gfx/thebes/gfxHarfBuzzShaper.cpp index 0f7e0ac0398..7ffbaf62a1c 100644 --- a/gfx/thebes/gfxHarfBuzzShaper.cpp +++ b/gfx/thebes/gfxHarfBuzzShaper.cpp @@ -169,7 +169,7 @@ HBGetGlyph(hb_font_t *font, void *font_data, const FontCallbackData *fcd = static_cast(font_data); *glyph = fcd->mShaper->GetGlyph(unicode, variation_selector); - return true; + return *glyph != 0; } struct HMetricsHeader {