Skip to content

thejens/BinaryTypeface

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

Samples

8x1 (Horizontal)

8x1 Sample

1x8 (Vertical)

1x8 Sample

2x4

2x4 Sample

4x2

4x2 Sample

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

How It Works

The letter 'A' (ASCII 65 = 0b01000001) displays as tiny 0s and 1s arranged in your chosen grid pattern. Each glyph is a visual representation of its byte value.

About

A binary typeface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages