java.lang.Object
com.realtime.crossfire.jxclient.gui.log.Fonts

public class Fonts extends Object
Manage a set of fonts.
  • 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 for FontID.PRINT, FontID.HAND, and FontID.STRANGE text
      fontFixed - the font to use for FontID.FIXED text
      fontFixedBold - the font to use for FontID.FIXED text which has bold enabled
      fontArcane - the font to use for FontID.ARCANE text
  • Method Details

    • getFont

      @NotNull public @NotNull Font getFont(@NotNull @NotNull FontID font, boolean bold)
      Returns the Font to use for this text segment.
      Parameters:
      font - the font to return
      bold - whether to return a bold face bold
      Returns:
      the font