Issue displaying EmWin fonts with size large that 255

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

  • Issue displaying EmWin fonts with size large that 255


    I have problems displaying fonts with size beyond 255 pixels.

    As the GUI_FONT structure has the YSize and the YDist vars declared as U8, when the size is beyond 255 the vars overflows
    and the text is displayed badly in the display.

    I think that these vars must be declared as U16 if I'm right.

    struct GUI_FONT {
    U8 YSize;
    U8 YDist;
    U8 XMag;
    U8 YMag;
    U8 Baseline;
    U8 LHeight; /* Height of a small lower case character (a,x) */
    U8 CHeight; /* Height of a small upper case character (A,X) */

    Is there one alternative way for display large text?

    Best regards
    • Text error.png

      141.24 kB, 543×736, viewed 710 times
  • Hi,

    Unfortunately it is not possible to use emWin fonts higher than 255 pixels.

    Regards, Jörg
    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:

    Or you can contact us via e-mail.