< prev index next >

modules/web/src/main/java/com/sun/javafx/webkit/prism/WCFontImpl.java

Print this page




 198     }
 199 
 200     public float getLineGap() {
 201         // REMIND: This method needs to require a render context.
 202         float res = getFontStrike().getMetrics().getLineGap();
 203         if (log.isLoggable(Level.FINER)) {
 204             log.log(Level.FINER, "getLineGap({0}, {1}) = {2}",
 205                     new Object[] {font.getName(), font.getSize(),
 206                     res });
 207         }
 208         return res;
 209     }
 210 
 211     public boolean hasUniformLineMetrics() {
 212         return false;
 213     }
 214 
 215     public Object getPlatformFont() {
 216         return font;
 217     }




 218 }


 198     }
 199 
 200     public float getLineGap() {
 201         // REMIND: This method needs to require a render context.
 202         float res = getFontStrike().getMetrics().getLineGap();
 203         if (log.isLoggable(Level.FINER)) {
 204             log.log(Level.FINER, "getLineGap({0}, {1}) = {2}",
 205                     new Object[] {font.getName(), font.getSize(),
 206                     res });
 207         }
 208         return res;
 209     }
 210 
 211     public boolean hasUniformLineMetrics() {
 212         return false;
 213     }
 214 
 215     public Object getPlatformFont() {
 216         return font;
 217     }
 218 
 219     @Override public float getCapHeight() {
 220         return getFontStrike().getMetrics().getCapHeight();
 221     }
 222 }
< prev index next >