Package com.ms.awt |
![]() Previous |
![]() Contents |
![]() 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.
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. Legal Notices.