2026-11-07 18:51:06 +01:00
2026-11-07 14:59:39 +01:00
2026-11-07 18:51:06 +01:00
2026-11-07 18:50:52 +01:00
2026-11-07 13:49:26 +00:00
2026-11-07 13:49:26 +00:00
2026-11-07 13:49:26 +00:00
2026-11-07 16:21:34 +01:00
2026-11-07 18:26:56 +01:00
2026-11-07 18:26:56 +01:00

GLSL Glyphs Generator

Generate GLSL ready 8x8 glyph maps and usable functions

Usage

usage: glsl-glyphs [-h] -i INPUT_FILE [-n NAME] -o OUTPUT_FILE [-g NAMES_FILE] [-s SETS_FILE] [-f | --functions | --no-functions]
                   [-v | --verbose | --no-verbose] [-q | --quiet | --no-quiet]

options:
  -h, --help            show this help message and exit
  -i, --input INPUT_FILE
                        png 8x8 glyph map
  -n, --name NAME       target derived name for GLSL constants and functions (default: glyph)
  -o, --output OUTPUT_FILE
                        output glsl file
  -g, --glyph-names NAMES_FILE
                        glyphs names, one line each
  -s, --sets SETS_FILE  defined sets in CSV: index,length,name
  -f, --functions, --no-functions
                        add GLSL functions to output
  -v, --verbose, --no-verbose
                        more verbose logging
  -q, --quiet, --no-quiet
                        disable logging

More info about included resources

IBM PC CP437

See Why is there a "small house" in IBM's Code page 437? for more info on IBM PC CP437.

Crystalwarrior

See 1 bit by Crystalwarrior

Pmlomb

See 8x8 1 bit pixel set

Development

Makefile

Usage: make [target1] [target2] ...

Commands/Targets:
help                 show this message
install              install project
update               update project dependencies
run                  run project
sample-all           generate all samples
sample-%             generate sample (cp437/cw/pmlomb)
format               format project
lint                 lint project
build                build project
uv-sync              uv sync
uv-upgrade           uv sync upgrade
uv-run               uv run (project)
uv-run-sample-%      uv run (project) sample/(xxx)
ruff                 ruff check
ruff-fix             ruff check (and fix)
ruff-format          ruff format
ruff-format-check    ruff format (check only)
ty                   ty check
release-%            release major/minor/patch

TODO

  • Initial implementation
  • Generate a separate sentences file
  • Custom height glyph map
  • Custom width glyph map
S
Description
Generate GLSL ready glyph maps and usable functions
Readme
182 KiB
2026-11-08 17:26:56 +00:00
Languages
Python 89.4%
Makefile 10.6%