changeset 6080:2910f4be0016

Fix bad rendering mentioned in RT-34957. This in is preparation for RT-35255/RT-35221
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Mon, 13 Jan 2014 10:27:00 -0800
parents 52393354c6dd
children e13fa6df0ab3
files modules/graphics/src/main/java/com/sun/javafx/font/freetype/PangoGlyphLayout.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/font/freetype/PangoGlyphLayout.java	Mon Jan 13 15:51:59 2014 -0500
+++ b/modules/graphics/src/main/java/com/sun/javafx/font/freetype/PangoGlyphLayout.java	Mon Jan 13 10:27:00 2014 -0800
@@ -82,7 +82,7 @@
         CoderResult result = encoder.encode(in, out, true);
         if (result.isOverflow()) {
             capacity = (int)(length * (double)encoder.maxBytesPerChar());
-            in.rewind();
+            in = CharBuffer.wrap(chars, start, length);
             out = ByteBuffer.allocateDirect(capacity);
             encoder.encode(in, out, true);
             if (PrismFontFactory.debugFonts) {