Skip to main content

Imfont: a versatile Python tool for converting fonts and images into C++ arrays. Generate compact code for embedded systems or ImGui applications with rich console features. Simplify graphic resource integration. Created by HK4CRPRASAD. #Python #EmbeddedSystems #Imfont

Project description

imfont Tool 🎨

Convert images to C++ arrays with ease! This tool helps you generate C++ code for embedding images in your projects.

Installation

To install the imfont tool, you can use pip:

pip install imfont

Usage

CLI Usage

imfont -f <filename> -o <output_name>
imfont -i -f <image_folder> -o <output_file>

Options

  • -f, --file <filename>: Input file for the imfont tool
  • -o, --output <output_name>: Output name for the imfont tool
  • -i, --image: Use image to C++ array tool
  • -h, --help: Show help message

Example

imfont -f /path/to/font.ttf -o output.h

PIROOP

Interactive Mode

Run the script without any arguments to enter interactive mode:

python main.py

Follow the prompts to select compression options and specify input/output paths.

Credits

Made with ❤️ by HK4CRPRASAD

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

imfont-0.0.2.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

imfont-0.0.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file imfont-0.0.2.tar.gz.

File metadata

  • Download URL: imfont-0.0.2.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for imfont-0.0.2.tar.gz
Algorithm Hash digest
SHA256 309a8dadb550f02fc78b6fec6b3e674642d9f8424e08efb12f533fd4692d5be0
MD5 3d808be2869d67edf95cabbb0160e491
BLAKE2b-256 482d8d2a81c48392e3f2b10e762c1f96aa59d084702c6148a8dab335959c957c

See more details on using hashes here.

File details

Details for the file imfont-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: imfont-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for imfont-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f07620dcc0c49115a77057ccbbe8faae961bdf905a30f0276a076f053bac1ec0
MD5 c01b0d20c5ffc20aac6942a607b00abd
BLAKE2b-256 24bb2d4e63d222e6084b958679635b3694c49e365faa8c01b2462a3032e0d1f9

See more details on using hashes here.

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