Method getFontMetrics(Font font)
Return type: java.awt.FontMetrics
Member of: java.awt.Component
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 return new Dimension(Integer.MAX_VALUE, c.getFontMetrics( c.getFont()).getHeight());
2 FontMetrics fm = c.getFontMetrics(c.getFont());
3 return getFontMetrics(font).stringWidth(s);
4 metrics = tempComponent.getFontMetrics(font);
5 FontMetrics fm = getFontMetrics(fnt);
6 _labelFontMetrics = getFontMetrics(_labelFont);
7 FontMetrics fm = getFontMetrics(cellFont);
8 FontMetrics metrics = getFontMetrics(getFont());
9 getFontMetrics(UIManager.getFont("Label.font")).
10 fm = getFontMetrics(getFont());
11 fontMetrics = frame.getFontMetrics(font);
12 maxR = textPane.getHeight() / textPane.getFontMetrics(textPane.getFont()).getHeight();
13 int font_height = getFontMetrics ( getFont ( ) ).getHeight ( );
14 FontMetrics fm = component.getFontMetrics( mono);
15 FontMetrics metrics = container.getFontMetrics(derived);
16 int stringWidth = addressField.getFontMetrics(addressField.getFont()).
17 fontMetrics= getFontMetrics(labelFont);
18 FontMetrics fm = getFontMetrics(aboutPanel.getFont());
19 FontMetrics fm = b.getFontMetrics(font);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.