fix font filename
This commit is contained in:
parent
b302b3c6d0
commit
36b1fd4aa8
@ -91,7 +91,7 @@ class SoundslabDisplay:
|
||||
menu_overlay.rectangle([(21,21), (self.screen_size[0] - 21,self.screen_size[1] - 21)], (200, 0, 0, 127))
|
||||
|
||||
offset_from_top = 21 # start at the 21st row of pixels to draw inside the outer overlay
|
||||
font = ImageFont.truetype(font='/usr/share/fonts/truetype/hack/HackRegular.ttf', size=14)
|
||||
font = ImageFont.truetype(font='/usr/share/fonts/truetype/hack/Hack-Regular.ttf', size=14)
|
||||
for row in menu_data:
|
||||
if row.selected:
|
||||
menu_overlay.rectangle([(21, offset_from_top),(self.screen_size[0] - 21, offset_from_top + 40)], self.bg_color) # highlight background for selected menu item
|
||||
|
Loading…
Reference in New Issue
Block a user