Packages
 In this topic

*Methods

 

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

 


Class FxSystemFont

public final class FxSystemFont extends FxFont
{
  // Methods
  public static String[] getAttributeList();
  public static String[] getAttributeList(String faceName);
  public static Font getCaptionFont();
  public static int getFlagsVal(String face, String attribute);
  public static Font getFont(String face, Vector v, int size);
  public static Font getFont(String face, int style, int size,
        int flags);
  public static String[] getFontList();
  public static Font getIconTitleFont();
  public static Font getMenuFont();
  public static Font getMessageBoxFont();
  public static Font getSmallCaptionFont();
  public static Font getStatusFont();
  public static int getStyleVal(String face, String attribute);
  public static Font matchFaceToFont(String face);
}

This class handles system fonts (system-specific fonts that are used in graphical user interface components such as dialog boxes and menus). This class is cross-platform, but on platforms other than Microsoft® Win32®, FxSystemFont will default to the use of predefined standard fonts.

Font
  |
  +--FxFont
    |
    +--FxSystemFont

Methods

getAttributeList

public static String[] getAttributeList();

Retrieves a list of the generic attributes that the font supports.

Return Value:

Returns null.

Remarks:

Currently, this method is not implemented.

Overrides:

getAttributeList() in FxFont.

getAttributeList

public static String[] getAttributeList(String faceName);

Retrieves a list of the attributes that the font supports.

Return Value:

Returns null.

ParameterDescription
faceName The font's name.

Remarks:

Currently, this method is not implemented.

Overrides:

getAttributeList(String) in FxFont.

getCaptionFont

public static Font getCaptionFont();

Retrieves the system caption font.

Return Value:

Returns the caption font.

getFlagsVal

public static int getFlagsVal(String face, String attribute);

Retrieves a value for the flags of the given face name.

Return Value:

Returns 0.

ParameterDescription
face The font's name.
attribute A string that contains the attributes of the font (for example, "Rotatable").

Remarks:

Currently, this method is not implemented.

Overrides:

getFlagsVal(String,String) in FxFont.

getFont

public static Font getFont(String face, Vector v, int size);

Retrieves a font if an exact match is made with the given face, vector, and size.

Return Value:

Returns a Font object that matches the given parameters.

ParameterDescription
face The font's face name ("Helvetica", for example).
v A list of style names.
size The size of the font (in points). Currently, font size is not used in finding a match.

Overrides:

getFont(String,Vector,int) in FxFont.

getFont

public static Font getFont(String face, int style, int size, int flags);

Retrieves a font if an exact match is made with the given face, style, size and flags.

Return Value:

Returns a Font object that matches the given parameters.

ParameterDescription
face The font's face name ("Helvetica", for example).
style The font's style.
size The size of the font (in points).
flags This parameter can be one or a combination of the following: EMBEDDED, STRIKEOUT, or UNDERLINE.

Overrides:

getFont(String,int,int,int) in FxFont.

getFontList

public static String[] getFontList();

Retrieves a list of the faces that the font supports.

Return Value:

Returns the list of faces as an array of String objects.

Overrides:

getFontList() in FxFont.

getIconTitleFont

public static Font getIconTitleFont();

Retrieves the Icon Title system font.

Return Value:

Returns the Icon Title font.

getMenuFont

public static Font getMenuFont();

Retrieves the Menu system font.

Return Value:

Returns the Menu font.

getMessageBoxFont

public static Font getMessageBoxFont();

Retrieves the Message Box system font.

Return Value:

Returns the Message Box font.

getSmallCaptionFont

public static Font getSmallCaptionFont();

Retrieves the Small Caption system font.

Return Value:

Returns the Small Caption font.

getStatusFont

public static Font getStatusFont();

Retrieves the Status system font.

Return Value:

Returns the Status font.

getStyleVal

public static int getStyleVal(String face, String attribute);

Retrieves a value for the style flags of the given face name.

Return Value:

Returns 0.

ParameterDescription
face The font's name.
attribute A string that contains the attributes of the font (for example, "Rotatable").

Remarks:

Currently, this method is not implemented.

Overrides:

getStyleVal(String,String) in FxFont.

matchFaceToFont

public static Font matchFaceToFont(String face);

This method is used in the getAttributeList and getFont methods, and matches the given face to the current font object.

Return Value:

Returns a font object that best matches the given face.

ParameterDescription
face A font's face name.

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