Class ArtFonts

java.lang.Object
com.codename1.art.ArtFonts

public final class ArtFonts extends Object

Maps the font families an artwork names to Codename One fonts.

Register a TrueType font for a family with register; any other family falls back to the native main font (or the system font where native fonts are missing), in the right weight and style.

  • Method Details

    • register

      public static void register(String family, boolean bold, boolean italic, Font font)

      Registers a font for a family name.

      Parameters
      • family: the name an artwork uses, compared ignoring case
      • bold: the weight it is for
      • italic: the style it is for
      • font: the font, at any size; it is derived to each size needed