diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 68d2b3604..62454f6f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: ``` diff --git a/arcade/text.py b/arcade/text.py index a060d686c..814005075 100644 --- a/arcade/text.py +++ b/arcade/text.py @@ -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 @@ -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: