resolve font outline in NCAA baseball as well

This commit is contained in:
ChuckBuilds
2025-05-26 16:48:24 -05:00
parent 4359b073d3
commit 9e2757b763
2 changed files with 12 additions and 2 deletions

View File

@@ -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):