diff --git a/arcade/examples/drawing_text.py b/arcade/examples/drawing_text.py index d7534a928..23b23badd 100644 --- a/arcade/examples/drawing_text.py +++ b/arcade/examples/drawing_text.py @@ -12,8 +12,9 @@ DEFAULT_LINE_HEIGHT = 45 DEFAULT_FONT_SIZE = 20 -# Load fonts bumbled with Arcade such as the Kenney fonts +# Load fonts bundled with Arcade such as the Kenney fonts arcade.resources.load_kenney_fonts() +arcade.resources.load_liberation_fonts() class GameView(arcade.View): @@ -158,7 +159,8 @@ def on_draw(self): font_name=( "Times New Roman", # Comes with Windows "Times", # MacOS may sometimes have this variant - "Liberation Serif" # Common on Linux systems + # Common on Linux systems + we ship it with Arcade + "Liberation Serif" )) start_y -= DEFAULT_LINE_HEIGHT diff --git a/arcade/examples/drawing_text_objects.py b/arcade/examples/drawing_text_objects.py index dac86c487..4e5521e06 100644 --- a/arcade/examples/drawing_text_objects.py +++ b/arcade/examples/drawing_text_objects.py @@ -13,8 +13,9 @@ DEFAULT_LINE_HEIGHT = 45 DEFAULT_FONT_SIZE = 20 -# Load fonts bumbled with Arcade such as the Kenney fonts +# Load fonts bundled with Arcade such as the Kenney fonts arcade.resources.load_kenney_fonts() +arcade.resources.load_liberation_fonts() class GameView(arcade.View): @@ -171,7 +172,8 @@ def __init__(self,): font_name=( "Times New Roman", # Comes with Windows "Times", # MacOS may sometimes have this variant - "Liberation Serif" # Common on Linux systems + # Common on Linux systems + we ship it with Arcade + "Liberation Serif" ) ) diff --git a/arcade/examples/drawing_text_objects_batch.py b/arcade/examples/drawing_text_objects_batch.py index 611892a04..c44b8fcf1 100644 --- a/arcade/examples/drawing_text_objects_batch.py +++ b/arcade/examples/drawing_text_objects_batch.py @@ -15,8 +15,9 @@ import arcade from pyglet.graphics import Batch -# Load fonts bumbled with Arcade such as the Kenney fonts +# Load fonts bundled with Arcade such as the Kenney fonts arcade.resources.load_kenney_fonts() +arcade.resources.load_liberation_fonts() WINDOW_WIDTH = 1280 # Window width in pixels WINDOW_HEIGHT = 800 # Window height in pixels @@ -193,7 +194,8 @@ def __init__(self): font_name=( "Times New Roman", # Comes with Windows "Times", # MacOS may sometimes have this variant - "Liberation Serif" # Common on Linux systems + # Common on Linux systems + we ship it with Arcade + "Liberation Serif" ), batch=self.batch, ) diff --git a/tests/unit/text/test_text_instance_properties.py b/tests/unit/text/test_text_instance_properties.py index 73f96f934..837347a75 100644 --- a/tests/unit/text/test_text_instance_properties.py +++ b/tests/unit/text/test_text_instance_properties.py @@ -13,7 +13,7 @@ def instance() -> arcade.Text: ("value", "New test value"), ("x", 12.0), ("y", 12.0), - ("font_name", "Times New Roman"), + ("font_name", "Liberation Serif"), # Generic Times New Roman we ship in-box ("font_size", 20.0), ("width", 600), ("bold", True),