A tool for converting fonts to NICO Game Framework format fonts.
Project description
NICO Font Tool - Python
A tool for converting fonts to NICO Game Framework format fonts.
This is the Python version. The Nim version see: nico-font-tool.
Installation
pip install nico-font-tool
Usage
Command
Use nicofont -h
to learn more.
nicofont ./assets/fonts/quan/quan.ttf ./build/quan quan --font_size 8 -gaw -1
Scripts
See: Demo
sheet_data, alphabet = nico_font_tool.create_sheet(
font_file_path,
font_size,
glyph_offset_x,
glyph_offset_y,
glyph_adjust_width,
glyph_adjust_height,
)
nico_font_tool.save_palette_png(sheet_data, outputs_dir, outputs_name)
nico_font_tool.save_dat_file(alphabet, outputs_dir, outputs_name)
nico_font_tool.save_rgba_png(sheet_data, outputs_dir, outputs_name)
nico_font_tool.save_dat_file(alphabet, outputs_dir, outputs_name)
License
Under the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nico-font-tool-0.0.2.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for nico_font_tool-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c5c0d1562648d22fd1dfe08fcb4a1ffcc5ecd1b1a740b07af5e7b3057fdb390 |
|
MD5 | d1cc1121b5c7a8fb9056efb2b82d96c3 |
|
BLAKE2b-256 | ccfbc6bc3ab08f98cf041f7527a18d25e4af255f312180bc833b9c277715a3d9 |