Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.fx   Previous This
Package
Next

 


Class FxMapFont

public class FxMapFont
{
  // Constructors
  public FxMapFont(String s, Font f);

  // Methods
  public FxMapFontMappingSection getMappingSection();
  public int getNumMappingSections();
  public boolean isComplete();
}

This class ensures that a string can be drawn with a given font. If the string can't be drawn with the chosen font, other fonts are suggested for defined substrings.

Constructors

FxMapFont

public FxMapFont(String s, Font f);

Takes a string and base font and prepares the font mapping.

ParameterDescription
s The string to map.
f The base font that the string is mapped with.

Methods

getMappingSection

public FxMapFontMappingSection getMappingSection();

Acquires a FxMapFontMappingSection run. This is a defined substring of the FxMapFont buffer where font mapping operations are performed.

Return Value:

Returns an FxMapFontMappingSection object.

Remarks:

Currently returns null.

See Also: com.ms.fx.MapFontMappingSection

getNumMappingSections

public int getNumMappingSections();

Determines how many maps are required.

Return Value:

Returns the number of mapping sections that are required to map the text buffer.

isComplete

public boolean isComplete();

Determines if the string may be drawn with the given font.

Return Value:

Returns false.

Remarks:

Currently, this method is not implemented.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.