$ show rbanffy/3270font
This repository contains the source and build tooling for the 3270font, a monospaced vector font based on the IBM 3270 terminal. The primary artifact is a FontForge SFD file (3270_HQ.sfd) which is processed by a FontForge script (generate_derived.pe) to produce OTF, TTF, WOFF, and other font formats. The build system is orchestrated by a Makefile that also generates sample images, runs tests (fontlint, Font Bakery), and can install the fonts. Supporting Python scripts include generate_grid.py for creating FontForge guide grids and generate_sample_image.py for rendering sample text. The project includes CI via Travis and GitHub Actions, a Dockerfile for reproducible builds, and a pre-commit hook for code quality. While primarily a font design project, it functions as a build pipeline for a digital asset, with well-structured scripts and automated testing.
The LLM identified 2 files worth highlighting for reuse:
A standalone Python script that generates FontForge grid lines for glyph alignment. It accepts parameters for origin, bounds, and step sizes, outputting a FontForge-compatible grid definition. This script is self-contained, well-documented with argparse, and can be reused in any FontForge project requiring custom guide grids.
A Python script using Pillow to generate animated GIF sample images of the font at various sizes and with readability tests. It demonstrates a clean pattern for rendering text with PIL, including background lines and confusion-pair tests. The script is parameterized by font file paths and could be adapted to generate samples for any font.