Skip to main content

vbf (IN DEVELOPMENT)

a visual bitmap font format. you can edit a .vbf font with a text editor like its ASCII art (recommend you use a monospaced font with a 2:1 ratio)

uppercase alpha is very
similar to uppercase A
so lets use the same 
for both             +------------------+
+------------------+ |               U+0|  
| U+0041, U+0391   | |042,U+0392        |  
|------------------| |------------------|   +------------+
|                  | |                  |   |   U+0044   |
|      XXXXXX      | |  XXXXXXXXXX      |   |------------|
|    XX      XX    | |  XX        XX    |   |  XXXX      |
|  XX          XX  | |  XX          XX  |   |  XX  XX    |
|  XX          XX  | |  XX          XX  |   |  XX    XX  |
|  XX          XX  | |  XX          XX  |   |  XX    XX  |
|  XX          XX  | |  XX        XX    |   |  XX    XX  |
|  XXXXXXXXXXXXXX  | |  XXXXXXXXXX      |   |  XX    XX  |
|  XX          XX  | |  XX        XX    |   |  XX  XX    |
|  XX          XX  | |  XX          XX  |   |  XXXX      |
|  XX          XX  | |  XX          XX  |   +------------+
|  XX          XX  | |  XX          XX  |   "daa.. why is D smaller?"
|  XX          XX  | |  XX        XX    |  for the sake of example.
|  XX          XX  | |  XXXXXXXXXX      |  thats why.
|                  | |                  |
+------------------+ +------------------+

examples

glyphs are defined in floating boxes drawn with + - |. everything not in a box is ignored. pixels are drawn two characters wide: or XX

each glyph is mapped to one or more unicode sequences (a series of U+XXXX codepoints) separated by commas. whitespace in the header box is ignored.

converting to/from psf

install the two conversion tools:

pip install vbftools

convert to/from .psf:

psf_to_vbf < font.psf > font.vbf
vbf_to_psf < font.vbf > font.psf

(note: psf requires that all glyphs are the same size)

load a psf font: setfont font.psf
show the current font: showconsolefont
compress a font: gzip font.psf
decompress a font: gunzip font.psf.gz
find fonts: man setfont

Release files for vbftools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vbftools 0.1.0
File Size Uploaded
vbftools-0.1.0.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vbftools 0.1.0
File Interpreter ABI Platform
vbftools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / vbftools-0.1.0.tar.gz

Download URL vbftools-0.1.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ce2e1fb58c4a157cbbe8bda3336125421f7f9ac1f6bc276797a290c46b6b8d29
BLAKE2b-256 checksum
How to use checksums
a5b012a3e01250e8335a29e3c3636cf9aadd4cb838d986e597cde2c7d90a602c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / vbftools-0.1.0-py3-none-any.whl

Download URL vbftools-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65d299066adc4f9c04a37ee876376deb213138dc0f1cda3bf9cde64412720f77
BLAKE2b-256 checksum
How to use checksums
2afb9eab2ed0b554fd34d2b2c7dd2a4d081ea159a567291770873acc4b176de6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page