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
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
Built Distribution
File details
Details for the file imfont-0.0.5.tar.gz
.
File metadata
- Download URL: imfont-0.0.5.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c702d2fb1f44cc90b41d1392387ca32cb31350139768b7bfe485150d5bde7077 |
|
MD5 | f2330ddfa0aa25aad4c17d04625e0109 |
|
BLAKE2b-256 | b42b72d57a7a3d83851faf02b229b647a71bdbb9f356fcd761ae29603c627f5a |
File details
Details for the file imfont-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: imfont-0.0.5-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713d32db7e3ace45104714628aa4691e2052f15ad651cd04c85fd446544323e1 |
|
MD5 | d66f5b56a79ea150870c90ef785b85ef |
|
BLAKE2b-256 | 333ca04b88d63a49b59136522dd27f0b6be44072f66ee3fbeec3150f29c0df2e |