Issue displaying EmWin fonts with size large that 255

  • Hello,

    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

  • 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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!