VisioMove Essential (Android)  1.23.0

◆ setMapFont()

boolean setMapFont ( String  filePath)

Overrides the map's default font (currently DejaVuSans.ttf).

Note
Should be called within the listeners.VMELifeCycleListener.mapDidInitializeEngine(VMEMapView) notification.
Parameters
filePathThe TrueType Font file (*.ttf) to load. The font will be searched locally in the map bundle's "config" directory otherwise use an absolute path.
Returns
true if the font file was set successfully, otherwise false.
Version
1.13
Example
@Override
public void mapDidInitializeEngine(VMEMapView mapView) {
String lFilePath = extractFromAssetsAndGetFilePath("font.name.here.ttf");
mapView.setMapFont(lFilePath);
}
Visioglobe® 2015-2020