With the 9.3.0 SDK, and any app I tried in the sim. no matter the color, drawText never shows anything. Before I do a bug report, I wanted to check it's not just me.
With the 9.3.0 SDK, and any app I tried in the sim. no matter the color, drawText never shows anything. Before I do a bug report, I wanted to check it's not just me.
Yes, layout text and drawtext absent... though it's the same behaviour I have seen with the Edge 850 in the SIM since last year so I assumed it was the same SIM-only issue because the Edge 550 SIM was OK.
Now I think I should compare the simulator Device JSON files for the 850 and 550 ... and whaddayaknow!
In SDK folder under \Devices\Edge1060 edit the simulator.json change the "liveUpdates" value from false to true and all is OK
EDIT: I should note that I was also launching in glance mode when getting the no-text-drawing issue
It’s probably not you, and probably not 9.3.0 either. I’ve seen the same on Edge devices: fills and arcs draw fine, but drawText shows nothing in any color. In my case it only happens when the app is started from the glance ("Launch in Glance Mode"in the sim).
The Dc the full view gets after that seems to be a transparent overlay, and text drawn on it ends up invisible.
On the new Edge 1060 it is the same with SDK 9.2.0 and 9.3.0. Some older Edge models already behaved this way.
Workaround: draw the frame into an opaque BufferedBitmap, then blit it to the real dc.
Text renders normally that way.
If I remember correctly, I also had a problem with newer Edge devices when I set the background color to transparent for system fonts using setColor, i.e setColor(color, COLOR_TRANSPARENT)
In your case, are you using a color instead of transparency maybe?
In your case, are you using a color instead of transparency maybe?
Sample of text drawing:
Ok, so I started with a very simple widget I use for testing and added the 1060. drawText for two lines (one with a background color, one with transparent and two different foreground colors. No problem. Added a glance view. no problem. Added a drawLine, no problem.
Scratching my head now......
