summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-17 16:35:02 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-17 16:35:02 -0500
commit3a3602861226e995d95a8898668cd559c3ca1cf6 (patch)
tree0d5bc0494297a12e9ccb76b31cb365c843216735 /doc
parent49d76d30a55707e2bf95fd9ba03296489fac8d1d (diff)
downloadportland-os-3a3602861226e995d95a8898668cd559c3ca1cf6.tar.gz
quick bitmap font format, borrowing new default font from X
Diffstat (limited to 'doc')
-rw-r--r--doc/pbf.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/pbf.txt b/doc/pbf.txt
new file mode 100644
index 0000000..f42474c
--- /dev/null
+++ b/doc/pbf.txt
@@ -0,0 +1,18 @@
+Portland Bitmap Font format
+
+This format is intended as a quickly readable font format.
+
+Header:
+ byte: character width
+ byte: character height
+ byte: horizontal padding
+ byte: vertical padding
+ dword: offset into file of default character bitmap
+
+For each character (255 of them, 0x01 to 0xff):
+ dword: offset into bitmap data area of character bitmap,
+ or 0xffffffff if the default should be used.
+
+Bitmap data area:
+ bitmaps are from left to right, then from top to bottom.
+ the least significant bit of a byte is the "first" one. \ No newline at end of file