8168288: Dubious FontMetrics values from NullFontScaler
authorprr
Tue, 25 Oct 2016 09:56:40 -0700
changeset 41894 d6cab6a2ee4f
parent 41893 93dec2a1a219
child 41895 5f1530501a25
8168288: Dubious FontMetrics values from NullFontScaler Reviewed-by: serb, bpb
jdk/src/java.desktop/share/classes/sun/font/NullFontScaler.java
--- 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
     }