changeset 41894:d6cab6a2ee4f

8168288: Dubious FontMetrics values from NullFontScaler Reviewed-by: serb, bpb
author prr
date Tue, 25 Oct 2016 09:56:40 -0700
parents 93dec2a1a219
children 5f1530501a25
files jdk/src/java.desktop/share/classes/sun/font/NullFontScaler.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.desktop/share/classes/sun/font/NullFontScaler.java	Mon Oct 24 13:19:05 2016 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/font/NullFontScaler.java	Tue Oct 25 09:56:40 2016 -0700
@@ -36,8 +36,8 @@
         boolean supportsCJK, int filesize) {}
 
     StrikeMetrics getFontMetrics(long pScalerContext) {
-        return new StrikeMetrics(0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
-        0xf0,0xf0,0xf0,0xf0);
+        return new StrikeMetrics(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
+                                 0.0f, 0.0f, 0.0f, 0.0f);
     }
 
     float getGlyphAdvance(long pScalerContext, int glyphCode) {
@@ -71,7 +71,7 @@
         return getNullScalerContext();
     }
 
-    void invalidateScalerContext(long ppScalerContext) {
+    void invalidateScalerContext(long pScalerContext) {
         //nothing to do
     }