Skip to content

Commit

Permalink
Add cross-refs and pyglet Weight info to UILabel (#2492)
Browse files Browse the repository at this point in the history
* Add type annotation update for bold
* Add cross-refs
  • Loading branch information
pushfoo authored Jan 14, 2025
1 parent 03990b0 commit 0685cc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arcade/gui/widgets/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0685cc4

Please sign in to comment.