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 writefont (
ImageFont.FreeTypeFont) – Font for the textcolor (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 defaultNone. Set this to0to disable the stroke.stroke_color (Union[Tuple[
int,int,int],str,int], optional) – Color to use for the text stroke, by defaultNone