Skip to content

Add cross-refs, annotation, and pyglet Weight to UILabel #2492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading