Class FontParser
- java.lang.Object
-
- com.realtime.crossfire.jxclient.skin.io.FontParser
-
public class FontParser extends java.lang.ObjectCreatesFontinstances from string representations.
-
-
Constructor Summary
Constructors Constructor Description FontParser(@NotNull JXCSkinSource skinSource)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.awt.FontgetFont(@NotNull java.lang.String name)Returns a font by font file base name.
-
-
-
Constructor Detail
-
FontParser
public FontParser(@NotNull @NotNull JXCSkinSource skinSource)Creates a new instance.- Parameters:
skinSource- the skin source for loading resources
-
-
Method Detail
-
getFont
@NotNull public @NotNull java.awt.Font getFont(@NotNull @NotNull java.lang.String name) throws java.io.IOExceptionReturns a font by font file base name.- Parameters:
name- the file base name of the font file to load- Returns:
- the font
- Throws:
java.io.IOException- if the font cannot be loaded
-
-