aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32dwrite.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/w32dwrite.c b/src/w32dwrite.c
index 4dc65b15db7..10af8545a11 100644
--- a/src/w32dwrite.c
+++ b/src/w32dwrite.c
@@ -610,6 +610,14 @@ text_extents_internal (IDWriteFontFace *dwrite_font_face,
610 nglyphs, 610 nglyphs,
611 gmetrics, 611 gmetrics,
612 false); 612 false);
613
614 /* E_INVALIDARG means some of the glyphs index is out of bounds for the font. */
615 if (hr == E_INVALIDARG)
616 {
617 SAFE_FREE ();
618 return false;
619 }
620
613 if (!verify_hr (hr, "Failed to GetGdiCompatibleGlyphMetrics")) 621 if (!verify_hr (hr, "Failed to GetGdiCompatibleGlyphMetrics"))
614 { 622 {
615 SAFE_FREE (); 623 SAFE_FREE ();