Class Fonts
java.lang.Object
com.realtime.crossfire.jxclient.gui.log.Fonts
Manage a set of fonts.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Fonts
public Fonts(@NotNull @NotNull Font fontPrint, @NotNull @NotNull Font fontFixed, @NotNull @NotNull Font fontFixedBold, @NotNull @NotNull Font fontArcane) Creates a new instance.- Parameters:
fontPrint
- the font to use forFontID.PRINT
,FontID.HAND
, andFontID.STRANGE
textfontFixed
- the font to use forFontID.FIXED
textfontFixedBold
- the font to use forFontID.FIXED
text which has bold enabledfontArcane
- the font to use forFontID.ARCANE
text
-
-
Method Details
-
getFont
Returns theFont
to use for this text segment.- Parameters:
font
- the font to returnbold
- whether to return a bold face bold- Returns:
- the font
-