Text#

class aioEasyPillow.Text(text: str, font: FreeTypeFont, color: Union[Tuple[int, int, int], str, int] = 'black', stroke_width: Optional[int] = None, stroke_color: Optional[Union[Tuple[int, int, int], str, int]] = None)#

Text class

Parameters
  • text (str) – Text to write

  • font (ImageFont.FreeTypeFont) – Font for the text

  • color (Union[Tuple[int, int, int], str, int], optional) – Font color, by default 'black'

  • stroke_width (int, optional) – The optional width of the text stroke, by default None. Set this to 0 to disable the stroke.

  • stroke_color (Union[Tuple[int, int, int], str, int], optional) – Color to use for the text stroke, by default None