Text font (height/width) change dynamically

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

  • Text font (height/width) change dynamically

    Hi,
    I have one requirement where by I need to display text/string based on dynamic input of height and width of text (font size)
    Please let me know the possible ways for doing the same.

    Thanks,
    techEmbedded
  • Hello techEmbedded,

    You can use TTF fonts for displaying strings at various heights. The support of TTF is implemented using the FreeType library which can be downloaded using the link below:

    segger.com/link/emwin_freetype.zip

    Please note that the TTF support in emWin requires a sufficient amount of RAM and ROM. We recommend to use an ARM 9 processor or better in order to achieve good performance.
    For detailed information about TTF support in emWin, please refer to the chapter 10 "Fonts" in the emWin documentation.

    Best regards,
    Adrian