public class CFont extends Object
Font.| Constructor and Description |
|---|
CFont()
Creates an default font.
|
CFont(Font... fonts)
Creates a font initialized with a Java-style
Font's. |
CFont(Font font)
Creates a font initialized with a Java-style
Font. |
CFont(int index)
Creates a font initialized with an index.
|
CFont(List<Font> fonts)
Creates a font initialized with a Java-style
Font's. |
| Modifier and Type | Method and Description |
|---|---|
Font |
getFont()
Gets the Java-style
Font. |
Font[] |
getFonts()
Gets all available fonts if this has been specified as a list or an array.
|
int |
getIndex()
Gets the index of a font.
|
public CFont()
public CFont(int index)
index - the font index combined with possible BOLD and ITALIC attributes.IllegalArgumentException - for invalid index.public CFont(Font font)
Font.font - the font to use.IllegalArgumentException - for invalid font.public CFont(Font... fonts)
Font's. The first font
available on the client will be used, the rest will be ignored.fonts - the font(s) to use.IllegalArgumentException - for invalid font.public CFont(List<Font> fonts)
Font's. The first font
available on the client will be used, the rest will be ignored.fonts - the list of font(s) to use.IllegalArgumentException - for invalid font.public int getIndex()
Font
that is retrieved using getFont().public Font getFont()
Font.public Font[] getFonts()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.