registerFontWithFallback method - AssetsManager class - mapview library - Dart API
registerFontWithFallback
registerFontWithFallback abstract method
- String fontName,
- String fontPath,
- List<
String> fallbackFontFilePaths
Registers a font set under a font name.
After registration, the font name can be used in
- the SVG
texttag asfont-familyattribute parameter when creating a MapImage withImageFormat.SVG. - MapMarkerTextStyle
Repeated registration with the same font name is ignored.
-
fontNameA font name. -
fontPathA font file path. TTF, OTF and WOFF formats are supported.
Can be an asset file path or an absolute file path.
fallbackFontFilePathsAdditional 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);