Ticket Created
over 3 years ago

CIQQA-863

number.toChar() returns ... I don't know what (null, -1, 0, ...) but surly not correct values on fr735 device then number big (>200, maybe >128)

sdk 4.0.7
eclipse CIQ plug in: 4.1.0.beta2
eclipse Version: 2021-12 (4.22.0) Build id: 20211202-1639
windows 10
watch face
minSdkVersion 2.4.0

I can't see this bug on simulator from 3.1.9 SDK but on my user's device - he can see rectangle instead of char font so I think this is e reason.

For small number is ok (the last 108 is still good) but 999, 8230, 2000,1000 return something but not the char.

Strange that the same code for vivoactive HR (target 2.4) everything is ok.

  • this is custom font so I know this font exist (and I've mentioned it is run well for all devices except fr735)
    and calculation is simple
    - num= from 200 to 207;
    - dc.drawtext(...num.toChar())
    - and for small number defined as enum it runs, the same code for 200 not

    but I use also font 11 for char 8230=... and use it for scrolling text and no scroll so probably it's treated like end of string
    and strange it's display as ...but on the end of string but when I add it on start of string probably is treated as empty string
    so NAME+8230.toChar() look good NAME...
    but getTextWidthInPixels(8230.toChar()+NAME,F)  return probably 0 and it's less when width so no scroll
    I can't reproduce it on simulator so it's difficult to confirm it.

    BTW can you  answer to:

    forums.garmin.com/.../circular-dependency-error-occurrences

  • The box for a character indicates that the character doesn't exist in the font/language on the device.  What number are you using and what font?