Class Fonts


  • public class Fonts
    extends java.lang.Object
    Manage a set of fonts.
    • Constructor Summary

      Constructors 
      Constructor 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.
    • Constructor Detail

      • Fonts

        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)
        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 Detail

      • getFontFixed

        @NotNull
        public @NotNull java.awt.Font getFontFixed()
        Returns the font to use for FontID.FIXED text.
        Returns:
        the font
      • getFontFixedBold

        @NotNull
        public @NotNull java.awt.Font getFontFixedBold()
        Returns the font to use for FontID.FIXED text which has bold enabled.
        Returns:
        the font
      • getFontArcane

        @NotNull
        public @NotNull java.awt.Font getFontArcane()
        Returns the font to use for FontID.ARCANE text.
        Returns:
        the font