public class Fonts
extends java.lang.Object
Constructor and Description |
---|
Fonts(@NotNull java.awt.Font fontPrint,
@NotNull java.awt.Font fontFixed,
@NotNull java.awt.Font fontFixedBold,
@NotNull java.awt.Font fontArcane)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.awt.Font |
getFont(@NotNull FontID font,
boolean bold)
Returns the
Font to use for this text segment. |
public Fonts(@NotNull @NotNull java.awt.Font fontPrint, @NotNull @NotNull java.awt.Font fontFixed, @NotNull @NotNull java.awt.Font fontFixedBold, @NotNull @NotNull java.awt.Font fontArcane)
fontPrint
- the font to use for FontID.PRINT
,
FontID.HAND
, and FontID.STRANGE
textfontFixed
- the font to use for FontID.FIXED
textfontFixedBold
- the font to use for FontID.FIXED
text which
has bold enabledfontArcane
- the font to use for FontID.ARCANE
text@NotNull public @NotNull java.awt.Font getFont(@NotNull @NotNull FontID font, boolean bold)
Font
to use for this text segment.font
- the font to returnbold
- whether to return a bold face bold