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 details)
Built Distribution
File details
Details for the file nico-font-tool-0.0.2.tar.gz
.
File metadata
- Download URL: nico-font-tool-0.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3db278139e9ff3024b988b1ff203fcebf84d2f4aa7bddaf5f8ea63cfa927b30b |
|
MD5 | f67cec2d6270bc81c74be3a226be2ca6 |
|
BLAKE2b-256 | f23e45c931c798dc0f7b32ce3b71757b6db2c54251bef788072274d413a143fc |
Provenance
File details
Details for the file nico_font_tool-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: nico_font_tool-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c5c0d1562648d22fd1dfe08fcb4a1ffcc5ecd1b1a740b07af5e7b3057fdb390 |
|
MD5 | d1cc1121b5c7a8fb9056efb2b82d96c3 |
|
BLAKE2b-256 | ccfbc6bc3ab08f98cf041f7527a18d25e4af255f312180bc833b9c277715a3d9 |