File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def __init__(
87
87
font_name = ("calibri" , "arial" ),
88
88
font_size : float = 12 ,
89
89
text_color : RGBOrA255 = arcade .color .WHITE ,
90
- bold = False ,
90
+ bold : str | bool = False ,
91
91
italic = False ,
92
92
align = "left" ,
93
93
multiline : bool = False ,
@@ -235,7 +235,9 @@ def update_font(
235
235
success.
236
236
font_size: Font size of font.
237
237
font_color: Color of the text.
238
- bold: If enabled, the label's text will be in a **bold** style.
238
+ bold: May be any value in :py:obj:`pyglet.text.Weight`,
239
+ ``True`` (converts to ``"bold"``), or ``False``
240
+ (converts to ``"regular"``).
239
241
italic: If enabled, the label's text will be in an *italic*
240
242
"""
241
243
font_name = font_name or self ._label .font_name
You can’t perform that action at this time.
0 commit comments