Propert utf8 encoding

This commit is contained in:
jpirnay
2026-04-26 22:59:02 +02:00
parent 088710378b
commit 7bca342d0c
54 changed files with 100730 additions and 100538 deletions
+4
View File
@@ -8,6 +8,10 @@ import argparse
from collections import namedtuple
from fontTools.ttLib import TTFont
# Force UTF-8 stdout so that `> file.h` on Windows doesn't produce UTF-16 LE
if hasattr(sys.stdout, 'reconfigure'):
sys.stdout.reconfigure(encoding='utf-8')
# Originally from https://github.com/vroland/epdiy
parser = argparse.ArgumentParser(description="Generate a header file from a font to be used with epdiy.")