예제 #1
0
 @Override
 public void setFont(final Font f) {
   dfont = f;
   bfont = f.deriveFont(Font.BOLD);
   font(f);
 }
예제 #2
0
 /**
  * Sets the current font.
  *
  * @param f font
  */
 private void font(final Font f) {
   font = f;
   off = f.getSize() + 1 >> 2;
   fontH = f.getSize() + off;
   fwidth = GUIConstants.fontWidths(f);
 }