changeset 12391:78b4acd93923

8073334: Improved font substitutions Reviewed-by: srl, bae, mschoene
author prr
date Mon, 06 Apr 2015 15:54:29 -0700
parents d9e6093a5b0f
children 3c8a548c5def
files src/java.desktop/share/native/libfontmanager/layout/AlternateSubstSubtables.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/native/libfontmanager/layout/AlternateSubstSubtables.cpp	Mon Apr 06 20:24:27 2015 +0000
+++ b/src/java.desktop/share/native/libfontmanager/layout/AlternateSubstSubtables.cpp	Mon Apr 06 15:54:29 2015 -0700
@@ -53,6 +53,7 @@
             Offset alternateSetTableOffset = SWAPW(alternateSetTableOffsetArray[coverageIndex]);
             const LEReferenceTo<AlternateSetTable> alternateSetTable(base, success,
                                   (const AlternateSetTable *) ((char *) this + alternateSetTableOffset));
+            if (!LE_SUCCESS(success)) return 0;
             TTGlyphID alternate = SWAPW(alternateSetTable->alternateArray[0]);
 
             if (filter == NULL || filter->accept(LE_SET_GLYPH(glyph, alternate), success)) {