An OpenFrameworks
program that generates training data from font faces installed on your Mac.
This tool automates the process of creating a dataset from installed fonts on macOS. It renders specified glyphs from each font, saving them as individual images. This can be particularly useful for machine learning projects focused on typography, such as font classification or glyph generation tasks.
Note
The program will process fonts as specified in Constants.h
. Adjust parameters like glyph choice, image size, and output limits there before running.
-
Prerequisites:
- Install OpenFrameworks on your macOS system.
- Ensure you have Xcode installed (for macOS development).
-
Project Setup:
- Clone this repository or download the source code.
- Open
Project.xcconfig
and set the path to your OpenFrameworks library. - Review and adjust the configuration in
Constants.h
as needed.
-
Building the Project:
- Open the project in Xcode.
- Build and run the project from within Xcode.
Alternatively, if you prefer to start from scratch:
- Use the OpenFrameworks project generator to create a new project.
- Replace the contents of the
src/
folder with the files from this repository.
-
Running the Program:
- Execute the program. It will automatically process installed fonts.
- The script will generate images for each font it processes.
-
Output: After successful execution, find the generated images in:
/fontfaceScraper/bin/data/