This script processes fonts by applying a texture to them, adding a watermark, and saving the resulting images. It simplifies the process of creating font textures for Minecraft player heads.
-
Install Python:
- Visit the Python website and download the latest version of Python.
- Follow the installation instructions for your operating system.
-
Install Required Dependencies:
- Open a terminal or command prompt.
- Run the following command to install the necessary dependencies:
pip install -r requirements.txt
-
Prepare the Image Files:
- Create the following directories in the same location as the script:
textures/font/
(Place all font textures with a size of 32x16 in this directory.)textures/font_texture/
(Place all font textures with a size of 64x64 in this directory.)textures/base_texture.png
(Place the base texture image file in this directory.)textures/watermark.png
(Place the watermark image file in this directory.)
- Create the following directories in the same location as the script:
-
Run the Script:
- Open a terminal or command prompt.
- Navigate to the directory containing the script.
- Run the script using the following command:
python script.py
- The script will process the fonts, generate new images, and save them in the
result
directory.
-
View the Results:
- Open the
result
directory to find the processed images.
- Open the