Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class ArtFonts

  1. Object
  2. ArtFonts

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.

Methods

public static void register(String family, boolean bold, boolean italic, Font font)Registers a font for a family name.

Inherited methods

Method details

register

public static void register(String family, boolean bold, boolean italic, Font font)
Registers a font for a family name.

Parameters

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