Displaying arrows with GUI_Font8x16

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Displaying arrows with GUI_Font8x16

    I'm trying to display the arrow symbols with the GUI_Font8x16.
    I was not able to find the relevant info in the EmWin manual.

    The hex code of the arrow is 0x2192
    I've converted it to UTF-8 and I got 0xE28692

    C Source Code

    1. GUI_UC_SetEncodeUTF8();
    2. GUI_DispStringAt("Page 1/2\xE2\x86\x92", 310, 185);



    This displays nothing...

    Any ideas on what I'm doing wrong?

    Gerrit
  • Hi Gerrit,

    the standard fonts coming with emWin support the ASCII character set and the ISO 8859-1 western latin character set in the range of 160-255.

    Unfortunately these ranges do not contain any arrows.

    BUT, someone was so kind and added some additional characters to the standard fonts ;)

    These characters are:
    0x90 - Arrow left
    0x91 - Arrow right
    0x92 - Arrow up
    0x93 - Arrow down
    0x94 - Enter
    0x95 - Checkmark

    Please try the following. The call of GUI_UC_SetEncodeUTF8() needs to be commented or deleted.

    C Source Code

    1. //GUI_UC_SetEncodeUTF8();
    2. GUI_DispStringAt("Page 1/2\x91", 310, 185);


    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi Gerrit,

    No, you didn't missed anything. Unfortunately this not stated in the manual. I guess we will add it to the manual.

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.