Skip to main content

vbf

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:

psf2vbf < font.psf > font.vbf
vbf2psf < 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
convert from bdf (using psftools): bdf2psf font.bdf convert to bdf (using console-setup): psf2bdf font.psf

Release files for vbftools 0.1.1

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.1
File Size Uploaded
vbftools-0.1.1.tar.gz 65.3 kB Details

Built distribution (wheel)

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

Total release size: 70.4 kB

Release files / vbftools-0.1.1.tar.gz

Download URL vbftools-0.1.1.tar.gz
Size 65.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cbf8dbfc385446ad7e71b3b143be2ba45910f863a9f33202af7543a478bd9c6d
BLAKE2b-256 checksum
How to use checksums
a4eebbee7616ac868fd47b00eaf34f20fa8f364cb834072ba548e91539b73580
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.1-py3-none-any.whl

Download URL vbftools-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68277fb7a7251baef2c7cc9d322a6e6266e6913977ebd566a14489a056390faf
BLAKE2b-256 checksum
How to use checksums
d95f8dd4001e5369cb0a68e7e4d700bc68e5d0bba513c07f110297abbaf8f110
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

This release

0.1.1 This release

2 release files

0.1.0

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