diff --git a/arcade/gui/widgets/text.py b/arcade/gui/widgets/text.py index 5b1e628c2..be72e8788 100644 --- a/arcade/gui/widgets/text.py +++ b/arcade/gui/widgets/text.py @@ -87,7 +87,7 @@ def __init__( font_name=("calibri", "arial"), font_size: float = 12, text_color: RGBOrA255 = arcade.color.WHITE, - bold=False, + bold: str | bool = False, italic=False, align="left", multiline: bool = False, @@ -235,7 +235,9 @@ def update_font( success. font_size: Font size of font. font_color: Color of the text. - bold: If enabled, the label's text will be in a **bold** style. + bold: May be any value in :py:obj:`pyglet.text.Weight`, + ``True`` (converts to ``"bold"``), or ``False`` + (converts to ``"regular"``). italic: If enabled, the label's text will be in an *italic* """ font_name = font_name or self._label.font_name