Converts fonts to the DevilutionX font format.
This is a work-in-progress.
Example usage (with uv):
uv run devilutionx-font-converter \
--font_path ~/Downloads/NotoSansCJKjp-hinted/NotoSansCJKjp-Regular.otf \
--output_directory=tmp/noto_ja_12 \
--font_size=12 \
--frame_height=20Advanced usage:
uv run devilutionx-font-converter \
--font_path ~/Downloads/NotoSansCJKjp-hinted/NotoSansCJKjp-Regular.otf \
--output_directory=tmp/noto_ja_12 \
--font_size=17 \
--frame_height=20 \
--output_basename_prefix=12 \
--min_cp=0x4e00 \
--max_cp=0xff00 \
--stroke_width=1uv run devilutionx-font-converter \
--font_path ~/Downloads/NotoSansCJKjp-hinted/NotoSansCJKjp-Regular.otf \
--output_directory=tmp/noto_ja_46 \
--font_size=46 \
--frame_height=64 \
--min_cp=0x4e00 \
--max_cp=0xff00 \
--outer_bevel_size=2.5 \
--supersampling=2