| Package com.ms.awt |
Previous |
Microsoft Packages |
Index |
Next |
public class FontMetricsX extends Win32FontMetrics
{
// Constructor
public FontMetricsX(Font font);
// Methods
public String getFace();
public boolean canDrawOutline();
}
Provides access to font metrics supported by Win32.
public FontMetricsX(Font font)Calculates the metrics from the given font based on the Graphics object the FontMetrics object came from.
Parameter Description font Font object to query the metrics for. See Also: Font
public String getFace()Retrieves the face associated with the realized font obtained after selecting the current font into the Graphics object.
Return Value:
Returns the face name.
public boolean canDrawOutline()Determines if the font can be drawn in outline mode.
Return Value:
Returns true if the font can be drawn in outline mode, false otherwise.
| © 1997 Microsoft Corporation. All rights reserved. Terms of Use. |