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.