Acknowledged
CIQQA-3776

[bug] Simulator bug for older systems

My layout is messed up when I use drawRadialText on I guess devices with system 7, to make it easy I'll talk about system 7 where it fails.

However, if I first choose to run it on a system 8 device and re-use the simulator screen to run it on a system 7 device it works ok.

This is a typical line of code where it happens:

dc.drawRadialText(width/2, height/2, vectorBdf, strBottomDataTXT, 0, angleBottomDataTXT, r, Graphics.RADIAL_TEXT_DIRECTION_CLOCKWISE); // Graphics.TEXT_JUSTIFY_RIGHT replaced with 0
The textstring is composed from two sets of Complication.shortLabel and Complication.value values, that have some simple preformatting to reduce the errors in the complication object on beforehand with a calculated maximum range for the total length of the string.
On the left before running a system 8 device on beforehand, on the right after doing so:
I could test the outcome on Venu 3 and Fenix 8, on both it works perfectly, but they both also work perfectly in the simulator. In the simulator for example the Approach S70 and fenix 7 series have this problem. 
Parents
  • Okay. The bug is that the simulator reuses part of the vector font definition from a previous device if the current device vector fonts definition is NUMBER_ONLY. So sadly the problem got in production for a short period of time. Follow these steps to reproduce:

    A

    - select NotoNaskhArabicBold as vectorfont for Fenix 8

    Print a textstring "ABC 123"

    B

    - select BionicBold as vectorfont for Approach S70

    Print a textstring "ABC 123"

    If you run B in a fresh window it produces "123"

    If you run A in a fresh window it produces "ABC 123"

    If you now run B in the same window it produces "ABC 123"

Comment
  • Okay. The bug is that the simulator reuses part of the vector font definition from a previous device if the current device vector fonts definition is NUMBER_ONLY. So sadly the problem got in production for a short period of time. Follow these steps to reproduce:

    A

    - select NotoNaskhArabicBold as vectorfont for Fenix 8

    Print a textstring "ABC 123"

    B

    - select BionicBold as vectorfont for Approach S70

    Print a textstring "ABC 123"

    If you run B in a fresh window it produces "123"

    If you run A in a fresh window it produces "ABC 123"

    If you now run B in the same window it produces "ABC 123"

Children
No Data