Command line tool to render text from NDS .NFTR fonts.
Project description
NDS Text Generator
Command line tool to render text from NDS .NFTR fonts.
Run from pip
pip install ndstextgen
ndstextgen --help
Run from source
Install pipenv.
pipenv install
pipenv run python ndstextgen --help
Usage
ndstextgen <options> FONT "TEXT"
Example: ndstextgen --color red font.NFTR "Print multiline\nred text."
FONT
: (Required) Filename of the font, .NFTR extension can be omitted.
TEXT
: (Required) Text to write. "\n" can be used for a line break. Can be the name of a UTF-8 file to read the text from.
--out <file>
: Output file. Default: text.png
--vert <int>
: Vertical spacing between lines. Default: 2
--fw <int>
: Use a fixed width instead of the VWF values in the font.
--color <text>
: Color to apply to the font. Default: black
--size <int>
: Maximum width/height for the generated image. Default: 512
Project details
Release history Release notifications | RSS feed
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
Hashes for ndstextgen-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c12151abc1accea540f4d35b62b9fb914b277e5177d23e023a19cdd5f9c71c76 |
|
MD5 | 9b8980c62e15707013d0ba0977f4baba |
|
BLAKE2b-256 | b857b9c03c02f7be8d36fe689b100993712cc2e517c2a78b4fc69ea34056d321 |