Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class ArtFonts
- Object
- 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
familyString- the name an artwork uses, compared ignoring case
boldboolean- the weight it is for
italicboolean- the style it is for
fontFont- the font, at any size; it is derived to each size needed