Skip to content

Repository files navigation

Binary Typeface Generator

A Python script that generates fonts which display text as tiny binary digits (0s and 1s).

Each character is represented as its 8-bit binary value, with the bits arranged in configurable grid layouts:

  • 8x1: 8 bits horizontally
  • 1x8: 8 bits vertically
  • 2x4: 2 columns × 4 rows
  • 4x2: 4 columns × 2 rows

Requirements

uv venv
source .venv/bin/activate
uv pip install fonttools

Usage

python main.py

This generates 4 TrueType fonts in the current directory:

  • BinaryTypeface_8x1.ttf
  • BinaryTypeface_1x8.ttf
  • BinaryTypeface_2x4.ttf
  • BinaryTypeface_4x2.ttf

Example

The letter 'A' (ASCII 65 = 0b01000001) will display as tiny 0s and 1s arranged in your chosen grid pattern.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages