@@ -122,15 +122,15 @@ def sighandler(signum, frame):
122
122
123
123
# Display custom text with solid background
124
124
lcd_comm .DisplayText ("Custom italic multiline text\n right-aligned" , 5 , 120 ,
125
- font = "roboto/Roboto-Italic.ttf" ,
125
+ font = "res/fonts/ roboto/Roboto-Italic.ttf" ,
126
126
font_size = 20 ,
127
127
font_color = (0 , 0 , 255 ),
128
128
background_color = (255 , 255 , 0 ),
129
129
align = 'right' )
130
130
131
131
# Display custom text with transparent background
132
132
lcd_comm .DisplayText ("Transparent bold text" , 5 , 180 ,
133
- font = "geforce/GeForce-Bold.ttf" ,
133
+ font = "res/fonts/ geforce/GeForce-Bold.ttf" ,
134
134
font_size = 30 ,
135
135
font_color = (255 , 255 , 255 ),
136
136
background_image = background )
@@ -140,7 +140,7 @@ def sighandler(signum, frame):
140
140
while not stop :
141
141
start = time .perf_counter ()
142
142
lcd_comm .DisplayText (str (datetime .now ().time ()), 160 , 2 ,
143
- font = "roboto/Roboto-Bold.ttf" ,
143
+ font = "res/fonts/ roboto/Roboto-Bold.ttf" ,
144
144
font_size = 20 ,
145
145
font_color = (255 , 0 , 0 ),
146
146
background_image = background )
@@ -177,7 +177,7 @@ def sighandler(signum, frame):
177
177
value = bar_value ,
178
178
bar_color = (255 , 255 , 0 ),
179
179
text = f"{ 10 * int (bar_value / 10 )} °C" ,
180
- font = "geforce/GeForce-Bold.ttf" ,
180
+ font = "res/fonts/ geforce/GeForce-Bold.ttf" ,
181
181
font_size = 20 ,
182
182
font_color = (255 , 255 , 0 ),
183
183
background_image = background )
0 commit comments