registerFontWithFallback abstract method

void registerFontWithFallback(
  1. String fontName,
  2. String fontPath,
  3. List<String> fallbackFontFilePaths
)

Registers a font set under a font name.

After registration, the font name can be used in

Repeated registration with the same font name is ignored.

  • fontName A font name.

  • fontPath A font file path. TTF, OTF and WOFF formats are supported.

Can be an asset file path or an absolute file path.

  • fallbackFontFilePaths Additional font files are intended to be used if main font does not contain required character symbol and shall be sorted starting from most useful.

Implementation

void registerFontWithFallback(String fontName, String fontPath, List<String> fallbackFontFilePaths);