Thousands of examples at your fingertips!
All classes, methods fields etc. are linked to the API documentation.
All members are listed by frequency of use or alphabetically (see left pane).
Links to examples and utility functions/classes are shown below
Class java.awt.Font
[api documentation] [ main menu] Search

Links to examples (only one line shown below for each example):
[add your own example]

1 if (defaultlook) this.setFont(new Font(this.getFont().getFontName(), Font.BOLD, this.getFont().getSize()));
2 defaultFont = new Font("Serif", Font.PLAIN, 12);
3 Font font = null;
4 int style = Font.PLAIN;
5 Font lFont = lComponent.getFont();
6 _labelFont = new Font("Helvetica", Font.PLAIN, 10);
7 Font fonts[] = gEnv.getAllFonts();
8 Font f = l1.getFont ();
9 case 1: selectedStyle = Font.BOLD; break;
10 smallFont = new Font("Monospaced", Font.PLAIN, prefs.smallFontSize);
11 {Font.PLAIN, Font.BOLD, Font.ITALIC, Font.BOLD | Font.ITALIC};
12 private static int[] sStyleValues = {Font.PLAIN, Font.ITALIC, Font.BOLD, Font.BOLD | Font.ITALIC, };
13 m_font = new Font(s, m_font.getStyle(), m_font.getSize());
14 String defaultName = numberMonitor.getFont().getName();
15 Font font;
16 mSB.append("font-family: "+font.getFamily()+"; ");
17 Font font = g.getFont();
18 Font font = Font.getFont("swing.plaf.metal.controlFont");
19 funct_Font = new Font (standard_Font.getName(), Font.BOLD|Font.ITALIC, standard_Font.getSize());
20 Font res=null;

Links to utility classes and functions:

1 isVectorFont(Font font) org.bdgp.swing.SwingUtil
2 com.jgoodies.plaf.FontUtils
3 org.apache.batik.bridge.SVGFontUtilities
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.