Skip to content

Commit

Permalink
(agrf) Move fonts to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Dec 29, 2024
1 parent f493635 commit e6e1f15
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agrf/pkg/font_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_font():
assert load_font("resources/AntaeusConsoleNumbers.otf", 12) is not None
assert load_font("resources/fonts/AntaeusConsoleNumbers.otf", 12) is not None
File renamed without changes.
2 changes: 1 addition & 1 deletion agrf/sprites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_data_layers(self, context):
alpha = Image.fromarray(alpha)
draw = ImageDraw.Draw(img)
drawa = ImageDraw.Draw(alpha)
font = load_font("resources/AntaeusConsoleNumbers.otf", w // 4)
font = load_font("resources/fonts/AntaeusConsoleNumbers.otf", w // 4)
message = str(self.number)
_, _, _w, _h = draw.textbbox((0, 0), message, font=font)
draw.text(((w - _w) // 2, w // 4), message, "blue", font=font)
Expand Down

0 comments on commit e6e1f15

Please sign in to comment.