Skip to content

Commit 4f55c62

Browse files
committed
Adapt font path now that Python binding moved one path level deeper.
Fixes hzeller#386
1 parent 3ca36b4 commit 4f55c62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bindings/python/samples/graphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
1111
def run(self):
1212
canvas = self.matrix
1313
font = graphics.Font()
14-
font.LoadFont("../../fonts/7x13.bdf")
14+
font.LoadFont("../../../fonts/7x13.bdf")
1515

1616
red = graphics.Color(255, 0, 0)
1717
graphics.DrawLine(canvas, 5, 5, 22, 13, red)

bindings/python/samples/runtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, *args, **kwargs):
1313
def run(self):
1414
offscreen_canvas = self.matrix.CreateFrameCanvas()
1515
font = graphics.Font()
16-
font.LoadFont("../../fonts/7x13.bdf")
16+
font.LoadFont("../../../fonts/7x13.bdf")
1717
textColor = graphics.Color(255, 255, 0)
1818
pos = offscreen_canvas.width
1919
my_text = self.args.text

0 commit comments

Comments
 (0)