Skip to content

Commit

Permalink
[tools] Font generation with Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
becseya authored and rleh committed Apr 2, 2024
1 parent 3b03250 commit f01fd0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
run: |
python3 tools/scripts/authors.py --handles --count --shoutout --since 2017-01-01
python3 tools/xpcc_generator/builder/system_layout.py examples/xpcc/xml/communication.xml -o /tmp
python3 tools/font_creator/font_export.py tools/font_creator/fonts/all_caps_3x5.font /tmp/all_caps_converted
stm32-examples:
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion tools/font_creator/font_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def read_font_file(filename):
if c == " ":
pass
elif c == "#":
y = char_line_index / 8
y = int(char_line_index / 8)
offset = y * char.width
char.data[offset + index] |= 1 << (char_line_index % 8)
else:
Expand Down

0 comments on commit f01fd0a

Please sign in to comment.