rm-hull / luma.led_matrix

Python module to drive LED Matrices & 7-segment displays (MAX7219) and RGB NeoPixels (WS2812 / APA102)
https://luma-led-matrix.readthedocs.io
MIT License
523 stars 157 forks source link

Possible to Increase the Font Size? #277

Open ASparkOfFire opened 2 years ago

ASparkOfFire commented 2 years ago

Is it Possible to Increase the Font size?

SN-8023 commented 2 years ago

Just create your own character set...

ASparkOfFire commented 2 years ago

Just create your own character set...

Can you please guide me?

ASparkOfFire commented 2 years ago

Okay so I managed to create custom character set but the problem is they are cut in half. I want 16x16 Characters for 64x16 matrix. @rm-hull Sorry for bothering but is there any way to use 16x16 characters?

ChrisToxz commented 2 years ago

I have no idea, but I'm using a custom font through pillow. Currently I'm using Silkscreen and White Rabbit for the bigger text

from PIL import *
font = ImageFont.truetype("slkscr.ttf", 8) # Where 8 is the font size
with canvas(device) as draw:
    draw.text((0, 0), "Text", fill="white", font=font)