Skip to content

Commit 9d356b3

Browse files
authored
Rename load_system_fonts to load_kenney_fonts (#2476)
1 parent c01c2ce commit 9d356b3

9 files changed

+9
-9
lines changed

arcade/examples/drawing_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
DEFAULT_FONT_SIZE = 20
1414

1515
# Load fonts bumbled with Arcade such as the Kenney fonts
16-
arcade.resources.load_system_fonts()
16+
arcade.resources.load_kenney_fonts()
1717

1818

1919
class GameView(arcade.View):

arcade/examples/drawing_text_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
DEFAULT_FONT_SIZE = 20
1515

1616
# Load fonts bumbled with Arcade such as the Kenney fonts
17-
arcade.resources.load_system_fonts()
17+
arcade.resources.load_kenney_fonts()
1818

1919

2020
class GameView(arcade.View):

arcade/examples/drawing_text_objects_batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from pyglet.graphics import Batch
1717

1818
# Load fonts bumbled with Arcade such as the Kenney fonts
19-
arcade.resources.load_system_fonts()
19+
arcade.resources.load_kenney_fonts()
2020

2121
WINDOW_WIDTH = 1280 # Window width in pixels
2222
WINDOW_HEIGHT = 800 # Window height in pixels

arcade/examples/gui/1_layouts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import arcade
1717
from arcade.gui import UIAnchorLayout, UIImage, UITextArea
1818

19-
arcade.resources.load_system_fonts()
19+
arcade.resources.load_kenney_fonts()
2020

2121
DESCRIPTION = """How to place widgets on the screen?
2222

arcade/examples/gui/2_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
)
3939

4040
# Load system fonts
41-
arcade.resources.load_system_fonts()
41+
arcade.resources.load_kenney_fonts()
4242

4343
DEFAULT_FONT = ("Kenney Future", "arial")
4444
DETAILS_FONT = ("arial", "Kenney Future Narrow")

arcade/examples/gui/6_size_hints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
UIView,
3333
)
3434

35-
arcade.resources.load_system_fonts()
35+
arcade.resources.load_kenney_fonts()
3636

3737
SIZE_HINT_TEXT = textwrap.dedent(
3838
"""

arcade/examples/gui/exp_hidden_password.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from arcade import resources
2424

2525
# Load kenny fonts shipped with arcade
26-
resources.load_system_fonts()
26+
resources.load_kenney_fonts()
2727

2828

2929
class MyView(UIView):

arcade/resources/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def list_built_in_assets(
211211
return filtered_paths
212212

213213

214-
def load_system_fonts() -> None:
214+
def load_kenney_fonts() -> None:
215215
"""Loads all the fonts in arcade's system directory.
216216
217217
Currently, this is only the Kenney fonts::

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
WINDOW = None
2929
OFFSCREEN = None
3030

31-
arcade.resources.load_system_fonts()
31+
arcade.resources.load_kenney_fonts()
3232

3333

3434
def make_window_caption(request=None, prefix="Testing", sep=" - ") -> str:

0 commit comments

Comments
 (0)