Skip to content

Commit

Permalink
Add (early) notes about font format
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Jan 25, 2016
1 parent e6db6f0 commit 7d544b6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions extras/notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
otf2bdf - converts truetype to BDF font format

https://www.math.nmsu.edu/~mleisher/Software/otf2bdf/

sudo apt-get install otf2bdf




Per-font encoding:

#bits for horiz advance
#bits for width
#bits for height
#bits for x offset
#bits for y offset
#bits in offsets table
table of offset for all chars

Per-char encoding:

WIDTH
BBX: width, height
BBX: x offset, y offset
pixel data, bit packed:
if 1st bit = 0, rest is bits for 1 line
if 1st bit = 1, next 3 bits are #repeat (0 to 5), followed by 1 line




0 comments on commit 7d544b6

Please sign in to comment.