Package com.ms.awt Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class FontMetricsX

Constructor , Methods

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.


Constructor


FontMetricsX

public FontMetricsX(Font font)

Calculates the metrics from the given font based on the Graphics object the FontMetrics object came from.

ParameterDescription
font The font object to query the metrics for.

See Also: Font


Methods


getFace

public String getFace()

Gets the face associated with the realized font obtained after selecting the current font into the Graphics object.

Return Value:

Returns the face name.


canDrawOutline

public boolean canDrawOutline()

Determines if the font can draw in outline mode.

Return Value:

Returns true if the font can be drawn in outline mode, false otherwise.



Top© 1996 Microsoft Corporation. All rights reserved.