Package com.ms.awt Previous
Previous
Contents
Contents
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 Font object to query the metrics for.


Methods


getFace

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.


canDrawOutline

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.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.