• Hello
    I have 3 small issues:
    1) Same code, different results in Bangle.js 1 / 2 emulator.

    const color = {
      main: g.toColor(255, 0, 0),
      back: g.getPixel(1, 30),
    }
    
    function getPixelColor(x, y) {
      var c = g.getPixel(x, y);
      if (c === color.main) {
        return color.back;
      }
      return color.main;
    }
    
    var layer = Graphics.createCallback(viewport.width, viewport.height, g.getBPP(), function(x, y) {
      g.setPixel(x, y, getPixelColor(x, y));
    });
    
    function draw() {
      ... // hour = 50, minutes = 60
      g.setColor(color.main);
      g.fillEllipse(center.x - 5 * scale, center.y - 70 * scale, center.x + 160 * scale, center.y + 90 * scale);
      layer.setFontAlign(1, 0).setFont("Vector", 90 * scale);
      layer.drawString(hour, center.x + 32 * scale, center.y - 31 * scale);
      layer.drawString(minutes, center.x + 32 * scale, center.y + 46 * scale);
      ...
    }
    

    (see attached image)

    2) There is something with the Vector font. I think the glyphs are not converted to path. :(

    3) When trying the font converter I have allot of fonts with height = 1 (maybe I'm doing something wrong). Ex:

    <link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@700&display=swap" rel="stylesheet">
    

    (see attached image)


    2 Attachments

    • Screen Shot 2021-10-19 at 04.54.54.png
    • Screen Shot 2021-10-19 at 04.44.21.png
About

Avatar for ff2005 @ff2005 started