public class FontParser
extends java.lang.Object
Font
instances from string representations.Constructor and Description |
---|
FontParser(@NotNull JXCSkinSource skinSource)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.awt.Font |
getFont(@NotNull java.lang.String name)
Returns a font by font file base name.
|
public FontParser(@NotNull @NotNull JXCSkinSource skinSource)
skinSource
- the skin source for loading resources@NotNull public @NotNull java.awt.Font getFont(@NotNull @NotNull java.lang.String name) throws java.io.IOException
name
- the file base name of the font file to loadjava.io.IOException
- if the font cannot be loaded