commit | ecdd3ad65a1f6e6304547672e920538434db2579 | [log] [tgz] |
---|---|---|
author | Phil Race <prr@openjdk.org> | Thu Jan 15 09:47:06 2015 -0800 |
committer | Phil Race <prr@openjdk.org> | Thu Jan 15 09:47:06 2015 -0800 |
tree | 7d16d27777ced265f04e56d0b5954dc32ac4f158 | |
parent | e840a34dc22ddd4d6a1341d14545aedcd6d11133 [diff] |
8067699: Better glyph storage Reviewed-by: srl, bae, mschoene
diff --git a/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc.cpp b/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc.cpp index 0014b95..99e9e37 100644 --- a/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc.cpp +++ b/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc.cpp
@@ -115,7 +115,7 @@ LE_DEBUG_BAD_FONT("off end of ligature substitution header"); return newState; // get out! bad font } - if(componentGlyph > glyphStorage.getGlyphCount()) { + if(componentGlyph >= glyphStorage.getGlyphCount()) { LE_DEBUG_BAD_FONT("preposterous componentGlyph"); currGlyph++; return newState; // get out! bad font
diff --git a/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc2.cpp b/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc2.cpp index 8e5b1cf..558cf8b 100644 --- a/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc2.cpp +++ b/jdk/src/java.desktop/share/native/libfontmanager/layout/LigatureSubstProc2.cpp
@@ -119,7 +119,7 @@ offset = action & lafComponentOffsetMask; if (offset != 0) { - if(componentGlyph > glyphStorage.getGlyphCount()) { + if(componentGlyph >= glyphStorage.getGlyphCount()) { LE_DEBUG_BAD_FONT("preposterous componentGlyph"); currGlyph+= dir; return nextStateIndex; // get out! bad font