Skip to content

Commit

Permalink
Fix: read .fnt file in UTF-8 encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Feb 14, 2022
1 parent 1d0d496 commit e03b8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/butano/butano_fonts_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def process_fonts_files(fonts_file_paths, build_folder_path):
font_name = fonts_file_name_no_ext + '_sprite_font'
fonts_header_path = build_folder_path + '/' + font_name + '.h'

with open(fonts_file_path, 'r') as fonts_file, open(fonts_header_path, 'w', encoding='utf-8') as header_file:
with open(fonts_file_path, 'r', encoding='utf-8') as fonts_file, open(fonts_header_path, 'w', encoding='utf-8') as header_file:
font_chars = []
font_widths = [0] * 95
unique_chars = unique_characters.copy()
Expand Down

0 comments on commit e03b8c7

Please sign in to comment.