mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
resolve font outline in NCAA baseball as well
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
"enabled": true,
|
||||
"update_interval": 300,
|
||||
"symbols": [
|
||||
"ASTS", "SCHD", "INTC", "NVDA", "T", "VOO", "SPEST", "SMCI"
|
||||
"ASTS", "SCHD", "INTC", "NVDA", "T", "VOO", "SMCI"
|
||||
],
|
||||
"display_format": "{symbol}: ${price} ({change}%)"
|
||||
},
|
||||
|
||||
@@ -577,7 +577,17 @@ class NCAABaseballLiveManager(BaseNCAABaseballManager):
|
||||
count_y = cluster_bottom_y + 2
|
||||
count_x = bases_origin_x + (base_cluster_width - count_text_width) // 2
|
||||
self.display_manager.draw = draw
|
||||
self._draw_text_with_outline(draw, count_text, (count_x, count_y), bdf_font, fill=text_color)
|
||||
# self._draw_text_with_outline(draw, count_text, (count_x, count_y), bdf_font, fill=text_color)
|
||||
|
||||
# Draw Balls-Strikes Count with outline using BDF font
|
||||
outline_color_for_bdf = (0, 0, 0) # Default outline color
|
||||
|
||||
# Draw outline
|
||||
for dx_offset, dy_offset in [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]:
|
||||
self.display_manager._draw_bdf_text(count_text, count_x + dx_offset, count_y + dy_offset, color=outline_color_for_bdf, font=bdf_font)
|
||||
|
||||
# Draw main text
|
||||
self.display_manager._draw_bdf_text(count_text, count_x, count_y, color=text_color, font=bdf_font)
|
||||
|
||||
score_font = self.display_manager.font; outline_color = (0, 0, 0); score_text_color = (255, 255, 255)
|
||||
def draw_bottom_outlined_text(x, y, text):
|
||||
|
||||
Reference in New Issue
Block a user