Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6853

Specifying fonts for GFX HAT

$
0
0

Hi there,

I am new to GFX HAT and Python. I got everything installed, and I got the sample Python code for “Hello World” to display. However, i noticed that there are not that many fonts included in the library - the sample code gives the following line:

font = ImageFont.truetype(fonts.AmaticSCBold, 38)

I think that that is a kind of an ugly font, and I would like to display something like Helvetica, or Times New Roman etc. I understand the size obviously, there could also be other fonts available that I just can’t see.

So, the question is - how do I use different more “normal” fonts.

Thanks, Alex.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6853

Trending Articles