Skip to main content

A tool for converting fonts to NICO Game Framework format fonts.

Project description

NICO Font Tool - Python

PyPI

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

nico-font-tool-0.0.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

nico_font_tool-0.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file nico-font-tool-0.0.3.tar.gz.

File metadata

  • Download URL: nico-font-tool-0.0.3.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

Hashes for nico-font-tool-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0d326c7f3cc0873b3023cfa85a8a5e34f89d3472d3e2578303e5f7a642e1c119
MD5 76b33cc7ea769663e9657bd3d86a31eb
BLAKE2b-256 1fa5d2875bb2afaacb062527fb0373fe7c21eaff3e6258a2b9f7a87ae4dcc995

See more details on using hashes here.

Provenance

File details

Details for the file nico_font_tool-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nico_font_tool-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d2152b1395f05a912c2be65fb15a74bf5693c5f00f94866d55a0471ea936c5bf
MD5 4f8c68651bfde57f911af153bcd08e37
BLAKE2b-256 b25b043e154658f6fa76cd322e9c6de31900791835af5327bfd3f2d5601c3ac6

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page