setMapFont

fun setMapFont(filePath: String): Boolean

Overrides the map's default font (currently DejaVuSans.ttf). Should be called within the listeners.VMELifeCycleListener.mapDataDidLoad notification.

Return

true if the font file was set successfully, otherwise false.

Since

1.13

@Override
void mapDataDidLoad(venueData: JSONObject) {
String lFilePath = extractFromAssetsAndGetFilePath("font.name.here.ttf");
mapController.setMapFont(lFilePath);
}

Parameters

filePath

The TrueType Font file (*.ttf) to load. The font will be searched locally in the map bundle's "config" directory otherwise use an absolute path.