Skip to content

diasurgical/devilutionx-font-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevilutionX Font Converter

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=20

Advanced 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=1
uv 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages