Dc.drawText() and positioning differences between simulator and 540/840/1040 Edge devices

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:

 

  1. Fix the device (fonts?  firmware?) to match what the simulator shows
  2. 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)
  3. 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!!

Please enable Safe Browsing to warn against unsafe URLs

Go to help

  • this has been an issue for years unfortunately.   simulator just isn't pixel perfect.  i end up having to buy a new device everytime a new edge comes out.   really stinks that us devs don't get a discount either.  (especially annoying that i have friends that get discounts because they happen to know someone that works at garmin).   the new x40 devices are the most troublesome yet in terms of layout.

  • You're right about it being an issue for years.  When I created this post it presented me with suggestions that might help - one of them was a post I created for the Edge 520 on the same problem.  was never fixed.  The issue isn't consistent across devices though as the 530/830/1030 are all fine, but they seem to have changed the fonts in the XX40 range but didn't make the fonts in the simulator match.

    Please enable Safe Browsing to warn against unsafe URLs

    Go to help