public interface AQFontFactory
AQFont
objects.
An instance of this interface is available via aqua.type.font alias.
Modifier and Type | Field and Description |
---|---|
static int |
BOLD
The bold style constant.
|
static int |
ITALIC
The italicized style constant.
|
static int |
PLAIN
The plain style constant.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final int BOLD
static final int ITALIC
static final int PLAIN
AQFont newFont(String name)
name
- the font name. This can be a font face name or a font family name.AQFont newFont(String name, int size)
name
- the font name. This can be a font face name or a font family name.size
- the point size of the AQFontAQFont newFont(String name, int style, int size)
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
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.