Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Any decent fonts for RA8875 display ?

  1. #1

    Any decent fonts for RA8875 display ?

    I'm using Sumotoy's RA8875 driver on a Teensy 4.0

    The display and driver works but I found the font is a bit strange.

    The aerial_22 and aerial_48 font doesn't look like Arial font and aerial_48 is upper case only.

    So is there a decent set of Arial fonts for the RA8875 ?

    Click image for larger version. 

Name:	IMG_5403.jpg 
Views:	3 
Size:	88.5 KB 
ID:	18606

    Code:
       display.setFont(&Liberation_Mono_72);
       display.setCursor(0, 0);
       display.println("Liberation_Mono_72");
    
       display.setFont(&Liberation_Mono_48);
       display.setCursor(0, 100);
       display.println("Liberation_Mono_48");
    
       display.setFont(&Liberation_Mono_36);
       display.setCursor(0, 150);
       display.println("Liberation_Mono_36");
    
       display.setFont(&Liberation_Mono_28);
       display.setCursor(0, 200);
       display.println("Liberation_Mono_28");
       
       display.setFont(&LiberationMono_24);
       display.setCursor(0, 230);
       display.println("LiberationMono_24");
    
       display.setFont(&aerial_22);
       display.setCursor(0, 300);
       display.println("aerial_22");
    
       display.setFont(&aerial_48);
       display.setCursor(0, 340);
       display.println("Testing 123 aerial_48");

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,624
    Well never tried this but Sumotoy has a method to convert fonts: https://github.com/sumotoy/RA8875/wi...convert-a-font

    The other thing is that the adafruit version seems to support their fonts: https://forums.adafruit.com/viewtopic.php?t=96819 and https://forums.adafruit.com/viewtopic.php?t=124652 Guess will have to look at that.
    Last edited by mjs513; 01-02-2020 at 01:41 PM.

  3. #3
    Just tried Sumotoy's font conversion tutorial. It works !!!

    Initially the converter software only listed the Arial font. I didn't really want to use that font because I believe it is copy righted.

    I downloaded the liberation font and installed in my Windows machine.
    https://github.com/liberationfonts/l...ses/tag/2.00.5

    Ran the converter software again and selected the liberation font. Generate the .c file and copy that into my Teensy project.

  4. #4
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,624
    Good to know that it works, never tried it.

    Out of curiosity l did a quick test and looks like with some effort you could get the RA8875 to use Adafruit fonts, etc. Going to put it on to do list.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •