registerFont method - AssetsManager class - mapview library - Dart API
registerFont
registerFont abstract method
- String fontName,
- String fontPath
Registers a font 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.
Implementation
void registerFont(String fontName, String fontPath);