Skip to main content

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 sync
pipenv run python ndstextgen --help

Command line 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, set empty to just return the image. 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.
--spacing <int>: Additional horizontal spacing between characters.
--color <text>: Color to apply to the font. Default: black
--bg <text>: Background color. Default: transparent
--width <int>: Set width for the generated image. Default: 256
--height <int>: Set height for the generated image. Default: 256
--center: Center each line.
--wwrap: Automatic wordwrap.
--no-crop: Don't crop the image before saving it.
--encoding <str>: Encoding the font uses. See Python documentation.

Script usage

import ndstextgen
image = ndstextgen.gen("font.NFTR", "Print multiline\nred text.", color="red")

Metadata

Release files for ndstextgen 1.7.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ndstextgen 1.7.5
File Size Uploaded Provenance Actions
ndstextgen-1.7.5.tar.gz 4.6 kB Without provenance Details for ndstextgen-1.7.5.tar.gz

Release files / ndstextgen-1.7.5.tar.gz

Download URL ndstextgen-1.7.5.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5529fecdf0dd37b500c136cd4879f812166cb036f4ed5603bb56dd3957c4cd11
BLAKE2b-256 checksum
How to use checksums
5dc13874db4ebfdad6c52af2cfd55c833fa84c0f74efb4ebb08438b5aa3cebe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for ndstextgen 1.7.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page