OpenAPI 1.0

com.aquafold.openapi.type
Interface AQFontFactory


public interface AQFontFactory

This interface provides factory methods for creating AQFont objects.

An instance of this interface is available via aqua.type.font alias.


Field Summary
static int BOLD
          The bold style constant.
static int ITALIC
          The italicized style constant.
static int PLAIN
          The plain style constant.
 
Method Summary
 AQFont newFont(String name)
          Creates a new AQFont from the specified name, style is defaulted to PLAIN and point size is defaulted to 11.
 AQFont newFont(String name, int size)
          Creates a new AQFont from the specified name and point size, style is defaulted to PLAIN.
 AQFont newFont(String name, int style, int size)
          Creates a new AQFont from the specified name, style and point size.
 

Field Detail

BOLD

static final int BOLD
The bold style constant.

See Also:
Constant Field Values

ITALIC

static final int ITALIC
The italicized style constant.

See Also:
Constant Field Values

PLAIN

static final int PLAIN
The plain style constant.

See Also:
Constant Field Values
Method Detail

newFont

AQFont newFont(String name)
Creates a new AQFont from the specified name, style is defaulted to PLAIN and point size is defaulted to 11.

Parameters:
name - the font name. This can be a font face name or a font family name.

newFont

AQFont newFont(String name,
               int size)
Creates a new AQFont from the specified name and point size, style is defaulted to PLAIN.

Parameters:
name - the font name. This can be a font face name or a font family name.
size - the point size of the AQFont

newFont

AQFont newFont(String name,
               int style,
               int size)
Creates a new AQFont from the specified name, style and point size.

Parameters:
name - the font name. This can be a font face name or a font family name.
style - the style constant for the AQFont. The style argument is an integer bitmask that may be PLAIN, or a bitwise union of BOLD and/or ITALIC (for example, ITALIC or BOLD|ITALIC). If the style argument does not conform to one of the expected integer bitmasks then the style is set to PLAIN.
size - the point size of the AQFont

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.