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.5.tar.gz (26.6 kB view hashes)

Uploaded Source

Built Distribution

imfont-0.0.5-py3-none-any.whl (25.5 kB view hashes)

Uploaded Python 3

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