diff --git a/src/share/native/sun/font/layout/GXLayoutEngine.cpp b/src/share/native/sun/font/layout/GXLayoutEngine.cpp index e6da45df8cb961f5c0cc5a6f85c6c94e74c3fbdd..cbe4b0ad2295786eaedc688eaac2206e9678d904 100644 --- a/src/share/native/sun/font/layout/GXLayoutEngine.cpp +++ b/src/share/native/sun/font/layout/GXLayoutEngine.cpp @@ -73,7 +73,7 @@ le_int32 GXLayoutEngine::computeGlyphs(const LEUnicode chars[], le_int32 offset, fMorphTable->process(fMorphTable, glyphStorage, success); - return count; + return glyphStorage.getGlyphCount(); } // apply positional tables diff --git a/src/share/native/sun/font/layout/GXLayoutEngine2.cpp b/src/share/native/sun/font/layout/GXLayoutEngine2.cpp index d4e385097fc9e9e56e119459b1b2fd1fa808e5cc..0d437d6aead8f492b0f8b4cdef415a749f09e13e 100644 --- a/src/share/native/sun/font/layout/GXLayoutEngine2.cpp +++ b/src/share/native/sun/font/layout/GXLayoutEngine2.cpp @@ -69,7 +69,7 @@ le_int32 GXLayoutEngine2::computeGlyphs(const LEUnicode chars[], le_int32 offset } fMorphTable->process(fMorphTable, glyphStorage, fTypoFlags, success); - return count; + return glyphStorage.getGlyphCount(); } // apply positional tables