|
@ -0,0 +1,33 @@ |
|
|
|
|
|
#+title: Font thing |
|
|
|
|
|
#+author: Antoine "Annwan" COMBET |
|
|
|
|
|
|
|
|
|
|
|
A small bitmap font renderer with its own format. |
|
|
|
|
|
|
|
|
|
|
|
* The format |
|
|
|
|
|
|
|
|
|
|
|
Introducing /TXTF/ a family of text based bitmap font formats. |
|
|
|
|
|
|
|
|
|
|
|
The first line of a TXTF font is the following: |
|
|
|
|
|
#+begin_quote |
|
|
|
|
|
=TXTF= /mode/ /nbcommentlines/ /file parameters/ |
|
|
|
|
|
#+end_quote |
|
|
|
|
|
Like |
|
|
|
|
|
#+begin_example |
|
|
|
|
|
TXTF 1 10 5 5 .# |
|
|
|
|
|
#+end_example |
|
|
|
|
|
|
|
|
|
|
|
The /nbcommentlines/ parameter is the number of description or comment |
|
|
|
|
|
lines placed before the actual font data (not including the |
|
|
|
|
|
header). In this comment area, you may put stuff like modelines, |
|
|
|
|
|
copyright information and/or a description of the font. |
|
|
|
|
|
|
|
|
|
|
|
The /mode/ is the specific fomat in the txtf familly this file is in, |
|
|
|
|
|
the existing mode are as follow |
|
|
|
|
|
|
|
|
|
|
|
** Mode 1 (Monospace) |
|
|
|
|
|
|
|
|
|
|
|
#+begin_quote |
|
|
|
|
|
=TXTF= =1= /nbcommentlines/ /width/ /height/ /alphabet/ |
|
|
|
|
|
/Comment lines/ |
|
|
|
|
|
/Data/ |
|
|
|
|
|
#+end_quote |