run imgui demo

This commit is contained in:
2023-10-08 22:29:47 -07:00
parent 777afc11d3
commit 8125c18ae6
7 changed files with 142 additions and 22 deletions

View File

@@ -8,7 +8,8 @@ import subprocess
DEFAULT_FONTS = ['B612_Mono', 'BrassMono']
def generate_font(header_file, path):
symbol_name=os.path.basename(path).replace('-', '_')
symbol_name=os.path.splitext(os.path.basename(path))[0]
symbol_name=symbol_name.replace('-', '_')
output = subprocess.check_output(
f'binary_to_compressed_c "{path}" {symbol_name}',
shell=True)
@@ -24,7 +25,7 @@ def generate_header(header, guard, files):
raise
with open(header, 'wt') as header_file:
header_file.write(f"""#ifndef {guard}
#define{guard}
#define {guard}
""")
for file in files: