GithubHelp home page GithubHelp logo

takwolf-deprecated / nico-font-tool.python Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 9.99 MB

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

License: MIT License

Python 100.00%
font fonts game-engine gamedev python nico

nico-font-tool.python's Introduction

NICO Font Tool - Python

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.

nico-font-tool.python's People

Contributors

takwolf avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

angluca

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.