diff --git a/arcade/examples/drawing_text.py b/arcade/examples/drawing_text.py index 38c4ad457..d7534a928 100644 --- a/arcade/examples/drawing_text.py +++ b/arcade/examples/drawing_text.py @@ -13,7 +13,7 @@ DEFAULT_FONT_SIZE = 20 # Load fonts bumbled with Arcade such as the Kenney fonts -arcade.resources.load_system_fonts() +arcade.resources.load_kenney_fonts() class GameView(arcade.View): diff --git a/arcade/examples/drawing_text_objects.py b/arcade/examples/drawing_text_objects.py index aa33c6c12..dac86c487 100644 --- a/arcade/examples/drawing_text_objects.py +++ b/arcade/examples/drawing_text_objects.py @@ -14,7 +14,7 @@ DEFAULT_FONT_SIZE = 20 # Load fonts bumbled with Arcade such as the Kenney fonts -arcade.resources.load_system_fonts() +arcade.resources.load_kenney_fonts() class GameView(arcade.View): diff --git a/arcade/examples/drawing_text_objects_batch.py b/arcade/examples/drawing_text_objects_batch.py index a930870cb..611892a04 100644 --- a/arcade/examples/drawing_text_objects_batch.py +++ b/arcade/examples/drawing_text_objects_batch.py @@ -16,7 +16,7 @@ from pyglet.graphics import Batch # Load fonts bumbled with Arcade such as the Kenney fonts -arcade.resources.load_system_fonts() +arcade.resources.load_kenney_fonts() WINDOW_WIDTH = 1280 # Window width in pixels WINDOW_HEIGHT = 800 # Window height in pixels diff --git a/arcade/examples/gui/1_layouts.py b/arcade/examples/gui/1_layouts.py index d19194f23..51afa9bea 100644 --- a/arcade/examples/gui/1_layouts.py +++ b/arcade/examples/gui/1_layouts.py @@ -16,7 +16,7 @@ import arcade from arcade.gui import UIAnchorLayout, UIImage, UITextArea -arcade.resources.load_system_fonts() +arcade.resources.load_kenney_fonts() DESCRIPTION = """How to place widgets on the screen? diff --git a/arcade/examples/gui/2_widgets.py b/arcade/examples/gui/2_widgets.py index 933d91a7a..bbb91790d 100644 --- a/arcade/examples/gui/2_widgets.py +++ b/arcade/examples/gui/2_widgets.py @@ -38,7 +38,7 @@ ) # Load system fonts -arcade.resources.load_system_fonts() +arcade.resources.load_kenney_fonts() DEFAULT_FONT = ("Kenney Future", "arial") DETAILS_FONT = ("arial", "Kenney Future Narrow") diff --git a/arcade/examples/gui/6_size_hints.py b/arcade/examples/gui/6_size_hints.py index 7a0c1721a..e9196b99a 100644 --- a/arcade/examples/gui/6_size_hints.py +++ b/arcade/examples/gui/6_size_hints.py @@ -32,7 +32,7 @@ UIView, ) -arcade.resources.load_system_fonts() +arcade.resources.load_kenney_fonts() SIZE_HINT_TEXT = textwrap.dedent( """ diff --git a/arcade/examples/gui/exp_hidden_password.py b/arcade/examples/gui/exp_hidden_password.py index a9acb7d8f..c5c47362c 100644 --- a/arcade/examples/gui/exp_hidden_password.py +++ b/arcade/examples/gui/exp_hidden_password.py @@ -23,7 +23,7 @@ from arcade import resources # Load kenny fonts shipped with arcade -resources.load_system_fonts() +resources.load_kenney_fonts() class MyView(UIView): diff --git a/arcade/resources/__init__.py b/arcade/resources/__init__.py index 0e90a26fd..c252c8a2f 100644 --- a/arcade/resources/__init__.py +++ b/arcade/resources/__init__.py @@ -211,7 +211,7 @@ def list_built_in_assets( return filtered_paths -def load_system_fonts() -> None: +def load_kenney_fonts() -> None: """Loads all the fonts in arcade's system directory. Currently, this is only the Kenney fonts:: diff --git a/tests/conftest.py b/tests/conftest.py index 8e46b39d8..d5c08bb65 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -28,7 +28,7 @@ WINDOW = None OFFSCREEN = None -arcade.resources.load_system_fonts() +arcade.resources.load_kenney_fonts() def make_window_caption(request=None, prefix="Testing", sep=" - ") -> str: