From 31a2f7e2d52a6c7a918f5516e36f344fc09936f0 Mon Sep 17 00:00:00 2001 From: prr Date: Tue, 7 Apr 2015 16:46:22 -0700 Subject: [PATCH] 8073334: Improved font substitutions Reviewed-by: bae, srl, mschoene --- src/share/native/sun/font/layout/AlternateSubstSubtables.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/share/native/sun/font/layout/AlternateSubstSubtables.cpp b/src/share/native/sun/font/layout/AlternateSubstSubtables.cpp index 3c68251d2..f296e89d3 100644 --- a/src/share/native/sun/font/layout/AlternateSubstSubtables.cpp +++ b/src/share/native/sun/font/layout/AlternateSubstSubtables.cpp @@ -53,6 +53,7 @@ le_uint32 AlternateSubstitutionSubtable::process(const LEReferenceTo 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)) { -- GitLab