Acknowledged
CIQQA-3336

Venu X1 SImulator vector font does not match actual device

For vector fonts, the sim is returning RobotoRegular instead of RobotoCondensedBold or RobotCondensedRegular as is the case on a real device.

The following returns null on the sim (but not on the device):

Graphics.getVectorFont({:face => ["RobotoCondensedBold", "RobotoCondensedRegular"], :size => size});
  • On the device, "RobotoCondensedBold" works.  On the sim "RobotoRegular" works.

    Accoding to the reference page (https://developer.garmin.com/connect-iq/device-reference/venux1/), the X1 is supposed to support RobotoRegular.  So, the reference page and sim match.  Yet, the actual device support RobotoCondensedBold.

    This is a test:

    import Toybox.Graphics;
    import Toybox.Lang;
    import Toybox.System;
    import Toybox.WatchUi;

    class x1fontsView extends WatchUi.WatchFace {

    function initialize() {
    WatchFace.initialize();
    }

    function onUpdate(dc as Dc) as Void {
    dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_BLACK);
    dc.clear();

    var fontNames = ["RobotoCondensedBold", "RobotoCondensedRegular", "RobotoRegular"];
    var y = 10;

    for (var size = 10; size < 100; size += 10) {
    var fontName = null;
    var font = null;
    for (var f = 0; fontName == null && f < fontNames.size(); f++) {
    font = Graphics.getVectorFont({:face => fontNames[f], :size => size});
    if (font != null) {
    fontName = fontNames[f];
    }
    }
    dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_TRANSPARENT);
    dc.drawText(50, y, font, size + " " + fontName, Graphics.TEXT_JUSTIFY_LEFT);
    y += size;
    }
    }
    }