? in the screen

Former Member
Former Member
Hi,
I have some '??' in the screen in place of the 'mn' that I'm awaited :

time = "" + minutes.format("%02d") + "mn" + s.format("%02d");


In the simulator, this is good, but not in the Watch

thanks for your help.
  • I'm guessing that you're using a FONT_NUMBER_* font. They are only numbers and a few other characters. What font and what device?
  • Former Member
    Former Member over 8 years ago
    Yes, I use :
    dc.drawText(110, 115, Graphics.FONT_MEDIUM,myhour, Graphics.TEXT_JUSTIFY_CENTER|Graphics.TEXT_JUSTIFY_VCENTER);
  • So you're NOT using a FONT_NUMBER_* font? What device? Where does the "??" appear? (in place of the "mn"?) The "?" probably indicates you're using a character that's not available in the font.
  • Former Member
    Former Member over 8 years ago
    this is on fenix 3.
    Yes, the '??' are for 'mn'
  • Former Member
    Former Member over 8 years ago
    Finally,
    you're probably right.
    As I haven't eclipse Under my eyes (as I'm in work), I just send the code to me, and I look on it in Notepad. and the code I put to you were in comment (between /* ....*/ : in Notepad, you didn't see the green) ...

    In fact, I use the Graphics.FONT_NUMBER_MEDIUM , then I'll try to correct it.

    Thanks,
  • In fact, I use the Graphics.FONT_NUMBER_MEDIUM , then I'll try to correct it. Thanks,


    Like I said, NUMBER_* fonts are pretty much only numbers. Two way to handle this is to use a regular font (FONT_MEDIUM for example), or instead of "mn" use ":" (":" is in all the NUMBER_* fonts).

    "Appendix B: Font Specifications" of the UX Guide in the SDK gives you details on what's in the fonts for various devices.
  • Former Member
    Former Member over 8 years ago
    ok, thanks
  • Like I said, NUMBER_* fonts are pretty much only numbers. Two way to handle this is to use a regular font (FONT_MEDIUM for example), or instead of "mn" use ":" (":" is in all the NUMBER_* fonts).

    "Appendix B: Font Specifications" of the UX Guide in the SDK gives you details on what's in the fonts for various devices.


    If you look at what's available for the font types, it actually varies per device. So if you are building for multiple devices you will need to go with the lowest common denominator, which, as Jim notes, is basically just numbers. I actually find it quite odd the the inconsistency is as varied as it is, other than numbers 0-9 and the period. As an example of strangeness, the fenix 3 series includes lowercase letters "%-./0123456789:abcdefghijklmnopqrstuvwxyz" but doesn't include the degree symbol °.

    For reference, the appendix is at http://developer.garmin.com/connect-iq/user-experience-guide/appendices/.

    Cheers,
    Douglas