A tool for converting fonts to NICO Game Framework format fonts.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
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/demo quan --font_size 8
Scripts
See: demo
import nico_font_tool
sheet_data, alphabet = nico_font_tool.create_sheet(
font_file_path='your/font/file/path.ttf',
font_size=8,
)
nico_font_tool.save_palette_png(sheet_data, 'outputs/palette/dir', 'outputs_name')
nico_font_tool.save_dat_file(alphabet, 'outputs/palette/dir', 'outputs_name')
nico_font_tool.save_rgba_png(sheet_data, 'outputs/rgba/dir', 'outputs_name')
nico_font_tool.save_dat_file(alphabet, 'outputs/rgba/dir', 'outputs_name')
Dependencies
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nico-font-tool-0.0.6.tar.gz.
File metadata
- Download URL: nico-font-tool-0.0.6.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1482e243928f081053d317d407019714663716d97a9ed5f2790a2d0e3830d721
|
|
| MD5 |
d7218e5f911a23c9e7ca043d1c299b35
|
|
| BLAKE2b-256 |
2f3006c486574e5d2af6b44eb30ac676e4590a059b0e94a138272b6f959b5b4c
|
File details
Details for the file nico_font_tool-0.0.6-py3-none-any.whl.
File metadata
- Download URL: nico_font_tool-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.7 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 |
9309ac481468ead22210aef023be916ec8dbbab494e581bbd1c44d8df6cf2064
|
|
| MD5 |
8c73f01ce8aae3955621fda41dc69c91
|
|
| BLAKE2b-256 |
94f1a6b43f7e08d9b7b3655f3a25e46be8ca65cdf1883caaefee3cc278f4b91e
|