Hi all,
I've reported a bug (https://forums.garmin.com/developer/connect-iq/i/bug-reports/font-positioning-different-between-simulator-and-real-device-for-edge-540-840) which has been acknowledged and I'm hoping some peeps here might up-vote it so it gets some traction, particularly if you've seen this issue yourself.
Essentially, if you use Dc.drawText() to pixel position text on the screen then you will see a difference between how things are positioned in the simulator vs. how they appear on a real device, for the Edge 540/840/1040 devices. I have had users of these devices report this, which I didn't know about, as everything looks perfect in the simulator. The screen shots attached to the bug report show it.
If you can't rely on the simulator to show you what will be presented on a real device, then it makes development really difficult.
I see 3 potential fixes for garmin:
- Fix the device (fonts? firmware?) to match what the simulator shows
- Fix the simulator to match what the device shows (however, this means I have to create specific layouts for XX40 devices, which is crazy considering they have the same screen dimensions as the 530/830/1030 devices)
- Send out 540/840/1040 devices to developers of apps for these devices so they have a real device they can test and adjust their layouts against (still means I need to cerate specific layouts for XX40 devices though) ;-)
#1 would be ideal; #2 is probably more likely; #3 yeah right!!