Possible bug with custom font loadin on CIQ 2.x SDK

Former Member
Former Member
Users of my DataField on the Edge1000 device started to report strange behavior (see the attached pic).





As you can see all text characters drawn with custom font, are rotated on 180 degrees. This problem appears only on the Edge1000 device with the most recent firmware. It works well on the 520 device even with most recent firmware. The data field was compiled using CIQ SDK v2.1.2 with minSdkVersion="2.1.0". The text output code look like:

fn = Ui.loadResource(Rez.Fonts.myfont);

dc.drawText(x, y, fn, text, Gfx.TEXT_JUSTIFY_CENTER|Gfx.TEXT_JUSTIFY_VCENTER);
  • Thanks for the info! We have another report of this that we already have slated for investigation. I'll add your example to our ticket so we have some more evidence to go on. Based on what I know, I believe this will only affect devices that support screen rotation, but I'm not completely certain.
  • Former Member
    Former Member over 8 years ago
    Thank you! Please, keep us informed on a resolution progress.
  • Same problem for me !

    With CIQ SDK 2.x, customfonts are 180 degrees rotated on Edge 1000 (but everything is fine on 520)
  • The problem still exists in 2.14 !!!

    Any news about this bug ?
  • Former Member
    Former Member over 8 years ago
    The problem still exists in 2.14 !!!

    Any news about this bug ?


    Hi, has some improvement with new Firmware 10.0?
  • Still an issue in SDK 2.2.0 beta, Oregon 7xx device with the latest SW 2.70 (it has CIQ 2.2.1 vm onboard).


    The same font works ok on watches.
    Oregon does support screen roatation, so Brandon was right initially.
  • Still an issue in SDK 2.2.0 beta, Oregon 7xx device with the latest SW 2.70 (it has CIQ 2.2.1 vm onboard).


    The same font works ok on watches.
    Oregon does support screen roatation, so Brandon was right initially.


    We do have a report of this and a ticket is in the hands of the device team. Thank you again.

    -Coleman
  • Oregon 7xx: Fixed in 2.80
    Thanks!
  • Oregon 7xx: Fixed in 2.80


    One thing I've seen on the Oregon with custom fonts (with 2.80) is differences in portrait vs landscape in a device-app. (It's a bit different device in that by turning it, it switches between the two modes while an app is running, so an app needs to be able to switch back and forth!)

    In both cases, the custom fonts are displayed in the proper orientation, but....
    When it's in portrait mode or landscape with "Garmin" to the left, doing a dc call to draw them, such as

    dc.drawText(25,0,myfont,"A",Gfx.TEXT_JUSTIFY_CENTER);

    works fine. The character is drawn at the top, over towards the left.

    But if you turn the Oregon 180 degrees, so the "Garmin" is toward the right, the "y" seems to be relative to the bottom of the screen and not the top, so the character is drawn on the bottom left. ("landscape is always "Garmin left" in the sim so you can't see it there)

    Native fonts work fine with similar dc calls, and position correctly in portrait or garmin left/right, so it's only for custom fonts.

    I sent Garmin a simple app that demonstrates this, so this is more of a "heads up" than anything.. And it may work correctly with layouts - I've not tried it.