< prev index next >

modules/javafx.graphics/src/main/java/com/sun/javafx/font/coretext/CTGlyphLayout.java

Print this page

        

@@ -116,11 +116,11 @@
                 if (runRef == 0) continue;
                 int slot = getFontSlot(runRef, composite, fontName, baseSlot);
                 if (slot != -1) {
                     glyphStart += OS.CTRunGetGlyphs(runRef, slot << 24, glyphStart, glyphs);
                 } else {
-                    glyphStart += OS.CTRunGetGlyphCount(runRef);
+                    glyphStart += OS.CTRunGetGlyphs(runRef, 0, glyphStart, glyphs);
                 }
                 if (size > 0) {
                     posStart += OS.CTRunGetPositions(runRef, posStart, positions);
                 }
                 indicesStart += OS.CTRunGetStringIndices(runRef, indicesStart, indices);
< prev index next >