Extra background color length

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

  • Extra background color length

    Hi,

    I am using functions given below to display a string with background color. I want background color length corresponding to string length but in the end of string some extra length ( 1 character) of background color is coming. Please suggest solution to this problem.

    GUI_SetFont(GUI_FONT_VERDANA_35);
    GUI_SetBkColor(GUI_RED);
    GUI_SetColor(GUI_BLACK);
    GUI_RECT pHRect={85,430,380,465}; //10/7/2019{95,435,383,465};
    GUI_DispStringInRectEx(dispHighPriW,&pHRect,GUI_TA_VCENTER|GUI_TA_HCENTER, strlen(dispHighPriW), GUI_ROTATE_0);

    I am using Font Converter to generate the font.
    Please suggest the solution.

    In previous thread, I am not getting reply after one reply so I am creating new thread.

    Regards
    Gaurav Aggarwal
  • Hi,

    please don't open threads with the same topic/question multiple times.

    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.