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

    M5Paper font

    SOFTWARE
    6
    11
    15.5k
    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.
    • P
      Powersoft
      last edited by

      How can I convert a standard font to a file I can use with thw M5Paper.
      I need the 7 segment led font in my program

      MatiM 1 Reply Last reply Reply Quote 0
      • MatiM
        Mati @Powersoft
        last edited by

        @powersoft since we dont have so many M5Paper support yet check this one:
        https://github.com/ayoy/fontedit/tree/v1.1.0

        1 Reply Last reply Reply Quote 0
        • P
          Powersoft
          last edited by

          Thanks for the response.
          do you have experience with the tool ttf2bin.py?
          It is in lib M5EPD/tools.

          1 Reply Last reply Reply Quote 0
          • F
            flypeek
            last edited by

            1.Download source code
            https://github.com/ayoy/fontedit/tree/v1.1.0

            2.Open m5stack\M5EPD\tools\ttf2bin
            Please specify file path. Like "ttf2bin ./font.ttf" or "python ttf2bin.py ./font.ttf"'
            get new binaryttf.h
            3.Overlay binaryttf.h used new binaryttf.h to \examples\Basics\M5EPD_TTF

            0_1610335626334_p1.jpg
            PS. please install Fonts file in TF card or SPIFFS before compiling.

            0_1610335661295_p3.jpg

            P 1 Reply Last reply Reply Quote 0
            • P
              Powersoft
              last edited by

              Hello,

              Thanks again. Have a very simple question. Is running the example "M5EPD_TTF" on your M5Paper? I have stored the font on my sd card as in the example above but and get strange things on the window when running this example.

              Second thing what is the benefit using the fontedit program? I have used the tool ttf2bin.py and convert a a standard ttf font, put it un the sd card and tried it to use. No result.

              As the example shows, the M5Paper could use standard ttf files as on my computer. Is that right.

              For me the M5Paper is not usable at the moment. Too bad about all that money.
              I have a number of M5Stack items and I am very satisfied with them, but not bad about this one.

              K V 2 Replies Last reply Reply Quote 0
              • K
                kevindtimm @Powersoft
                last edited by

                @powersoft I don't think the M5Paper was anywhere near ready for release. The hardware doesn't work and the documentation is truly awful. I really wish I could get my $70 back.

                P 1 Reply Last reply Reply Quote 0
                • P
                  Powersoft @kevindtimm
                  last edited by

                  @kevindtimm Thanks, I agree!!

                  1 Reply Last reply Reply Quote 0
                  • P
                    Powersoft @flypeek
                    last edited by

                    @flypeek When I Run the example file, the load of the font file gives the message
                    FT_Stream_Open: opened `/GenSenRounded-R.ttf' but zero-sized. But the file is'nt empty.
                    Any idee?

                    1 Reply Last reply Reply Quote 0
                    • V
                      veryalien @Powersoft
                      last edited by

                      @powersoft I got the M5EPD_TTF example running using the GenSenRounded-R.ttf file copied to my SD card. It displays some differently sized flowers, some unicode math symbols and left/right arrows to show top-left down to bottom-right labels.
                      I removed all the addtional example code to just read the font from the SD card, so the setup starts like this:

                      void setup()
                      {
                          M5.begin();
                          M5.TP.SetRotation(90);
                          M5.EPD.SetRotation(90);
                          M5.EPD.Clear(true);
                      
                          canvas1.loadFont("/GenSenRounded-R.ttf", SD); // Load font files from SD Card
                          canvas1.createCanvas(540, 960);
                          canvas1.createRender(48, 256);
                          ...
                      
                      1 Reply Last reply Reply Quote 0
                      • P
                        Powersoft
                        last edited by

                        Thanks, do you get also the message as I mentiod before?

                        1 Reply Last reply Reply Quote 0
                        • ScheduleDisplayS
                          ScheduleDisplay
                          last edited by ScheduleDisplay

                          Hello,
                          I Got the GFX font header file (by converting the Roboto.ttf file). Loaded the font file using canvas.setFreeFont(&Roboto_Medium50pt7b) and then display the text using canvas.printf(textString.c_str());.
                          It is working fine and display the text properly but when I am giving some special characters äöü then they are not appearing on M5stack paper.
                          Can someone please guide me what I am doing wrong? Am I missing something?

                          Thanks

                          The link to my question can be found here

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