Add the fonts that the guide talks about - the license allows for it.

This commit is contained in:
John Pasula 2019-09-27 12:42:46 -06:00
parent a32be42857
commit e9d5e2558b
4 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,6 @@
Silkscreen was created by Jason Kottke and is distributed under the Open Font License, which means that you can use, distribute, or modify it however you wish. More information about the license and Silkscreen is available on the web:
http://scripts.sil.org/OFL
http://www.kottke.org/plus/type/silkscreen/
To install Silkscreen, simply copy the two .ttf files to your fonts directory.

Binary file not shown.

Binary file not shown.

View file

@ -47,7 +47,7 @@ import sys
api_url = 'http://localhost/admin/api.php' api_url = 'http://localhost/admin/api.php'
# Load nice silkscreen font # Load nice silkscreen font
font = ImageFont.truetype('/home/pi/slkscr.ttf', 8) font = ImageFont.truetype('fonts/slkscr.ttf', 8)
# Create the I2C interface. # Create the I2C interface.
i2c = busio.I2C(SCL, SDA) i2c = busio.I2C(SCL, SDA)