Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to use fonts from u8g2_fonts.c ?

    Common problems
    2
    2
    322
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zhum last edited by

      I use LILYGO®TTGO 1,54-inch wrist e-paper.
      I try to use some fonts from u8g2_fonts.c, but I don't know how to do this. I added

      #include <u8g2_fonts.h>
      

      to the beginning of my source and

      display.setFont(u8g2_font_unifont_t_cyrillic);
      

      to the setup, but I get the error

      'u8g2_font_unifont_t_cyrillic' was not declared in this scope
      
      1 Reply Last reply Reply Quote 0
      • M
        Micky last edited by

        I don't know if the font format of U8G2 is consistent with that of GXEPD. It is recommended that you refer to the font modification of GXEPD, which indicates that it is a subclass of Adafruit_GFX.
        Link: https://github.com/ZinggJM/GxEPD

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors