Skip to content

Commit f01fd0a

Browse files
becseyarleh
authored andcommitted
[tools] Font generation with Python 3
1 parent 3b03250 commit f01fd0a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118
run: |
119119
python3 tools/scripts/authors.py --handles --count --shoutout --since 2017-01-01
120120
python3 tools/xpcc_generator/builder/system_layout.py examples/xpcc/xml/communication.xml -o /tmp
121+
python3 tools/font_creator/font_export.py tools/font_creator/fonts/all_caps_3x5.font /tmp/all_caps_converted
121122
122123
stm32-examples:
123124
runs-on: ubuntu-22.04

tools/font_creator/font_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def read_font_file(filename):
152152
if c == " ":
153153
pass
154154
elif c == "#":
155-
y = char_line_index / 8
155+
y = int(char_line_index / 8)
156156
offset = y * char.width
157157
char.data[offset + index] |= 1 << (char_line_index % 8)
158158
else:

0 commit comments

Comments
 (0)