🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Any example references to using the extra fonts in M5 Tough

    Arduino
    2
    2
    1.6k
    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.
    • G
      galeap
      last edited by

      Hi all,
      My learning journey has been a big one over the past two weeks with my M5 Tough, and I'm now a lot more comfortable with doing most basic things with it. However one thing that I haven't been able to do is get the GFXFF extra font set working with instructions like "M5.Lcd.drawString()". At the moment I'm limited to the basic fonts 1, 2 4, etc.

      I found the information in the Free_fonts.h file, and included it with #include<Free_Fonts.h> in my main project. And then had a go at trying to reference the fonts using this type of reference "&fonts::&FreeSansBold18pt7b" for the font parameter within the M5.Lcd.drawString command above, but couldn't get the code to compile as it looks like the drawString function is expecting an integer value.

      I'm sure I'm probably missing something simple here, so any pointers or examples of how to use the free fonts on the M5 Tough is appreciated.

      Thanks.
      galeap

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        Un fortunately this is not advised due to lack of space in the firmware.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post