changeset 9734:ff3609ace244 jdk-9+116

8154177: Font spacing is incorrect at 125% or 150% scaling on Windows Reviewed-by: kcr, flar
author prr
date Fri, 22 Apr 2016 14:44:46 -0700
parents 8b8d32536583
children fa8ec17c49b2 75ef8d66b07d
files modules/graphics/src/main/java/com/sun/prism/impl/GlyphCache.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/prism/impl/GlyphCache.java	Fri Apr 22 09:32:30 2016 -0700
+++ b/modules/graphics/src/main/java/com/sun/prism/impl/GlyphCache.java	Fri Apr 22 14:44:46 2016 -0700
@@ -143,6 +143,7 @@
                 continue;
             }
             pt.setLocation(x + gl.getPosX(gi), y + gl.getPosY(gi));
+            xform.transform(pt, pt);
             int subPixel = strike.getQuantizedPosition(pt);
             GlyphData data = getCachedGlyph(gc, subPixel);
             if (data != null) {
@@ -168,7 +169,6 @@
                         }
                     }
                 }
-                xform.transform(pt, pt);
                 addDataToQuad(data, vb, tex, pt.x, pt.y, dstw, dsth);
             }
         }