Skip to content
Closed
Show file tree
Hide file tree
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: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ terminal from inside the top level of the Arcade directory:
pip install -e '.[dev]'
```

If you are using the Windows command prompt, use double quotes:

```bash
pip install -e ".[dev]"
```

If you get an error like the one below, you probably need to update your pip version:

```
Expand Down
6 changes: 3 additions & 3 deletions arcade/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __init__(
color=Color.from_iterable(color),
width=width,
align=align, # type: ignore
bold=bold,
weight=pyglet.text.Weight.BOLD if bold else pyglet.text.Weight.NORMAL,
italic=italic,
multiline=multiline,
rotation=rotation, # type: ignore # pending https://github.com/pyglet/pyglet/issues/843
Expand Down Expand Up @@ -527,11 +527,11 @@ def bold(self) -> bool | str:
* ``"light"``

"""
return self._label.bold
return self._label.weight == pyglet.text.Weight.BOLD

@bold.setter
def bold(self, bold: bool | str):
self._label.bold = bold
self._label.weight = pyglet.text.Weight.BOLD if bold else pyglet.text.Weight.NORMAL

@property
def italic(self) -> bool | str:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies = [
# at the cost of slow download and constant pip install -I -e .[dev]
# "pyglet@git+https://github.com/pyglet/pyglet.git@development#egg=pyglet",
# Expected future dev preview release on PyPI (not yet released)
"pyglet == 2.1rc1",
"pyglet == 2.1rc2",
"pillow~=11.0.0",
"pymunk~=6.9.0",
"pytiled-parser~=2.2.7",
Expand Down
Loading