72 public boolean equals(Object object) { 73 if (object instanceof WCFont) { 74 Object font1 = getPlatformFont(); 75 Object font2 = ((WCFont) object).getPlatformFont(); 76 return font1 == null ? font2 == null : font1.equals(font2); 77 } 78 return false; 79 } 80 81 // Font metrics 82 83 public abstract float getAscent(); 84 85 public abstract float getDescent(); 86 87 public abstract float getLineSpacing(); 88 89 public abstract float getLineGap(); 90 91 public abstract boolean hasUniformLineMetrics(); 92 } | 72 public boolean equals(Object object) { 73 if (object instanceof WCFont) { 74 Object font1 = getPlatformFont(); 75 Object font2 = ((WCFont) object).getPlatformFont(); 76 return font1 == null ? font2 == null : font1.equals(font2); 77 } 78 return false; 79 } 80 81 // Font metrics 82 83 public abstract float getAscent(); 84 85 public abstract float getDescent(); 86 87 public abstract float getLineSpacing(); 88 89 public abstract float getLineGap(); 90 91 public abstract boolean hasUniformLineMetrics(); 92 93 public abstract float getCapHeight(); 94 } |