Fix text foreground color for dark kneeboard

This commit is contained in:
Kangwook Lee 2021-08-02 15:30:29 +09:00 committed by Dan Albert
parent bef015eb57
commit 77e62d5a54

View File

@ -96,10 +96,12 @@ class KneeboardPageWriter:
self,
text: str,
font: Optional[ImageFont.FreeTypeFont] = None,
fill: Tuple[int, int, int] = (0, 0, 0),
fill: Optional[Tuple[int, int, int]] = None,
) -> None:
if font is None:
font = self.content_font
if fill is None:
fill = self.foreground_fill
self.draw.text(self.position, text, font=font, fill=fill)
width, height = self.draw.textsize(text, font=font)