java.lang.Objectcom.realtime.crossfire.jxclient.skin.io.FontParser
public class FontParser
Creates Font instances from string representations.
| Field Summary | |
|---|---|
private JXCSkinSource |
skinSource
The JXCSkinSource for loading resources. |
| Constructor Summary | |
|---|---|
FontParser(JXCSkinSource skinSource)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.awt.Font |
getFont(java.lang.String name)
Returns a font by font file base name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final JXCSkinSource skinSource
JXCSkinSource for loading resources.
| Constructor Detail |
|---|
public FontParser(@NotNull
JXCSkinSource skinSource)
skinSource - the skin source for loading resources| Method Detail |
|---|
@NotNull
public java.awt.Font getFont(@NotNull
java.lang.String name)
throws java.io.IOException
name - the file base name of the font file to load
java.io.IOException - if the font cannot be loaded