|
@ -1,5 +1,6 @@ |
|
|
#+title: Font thing |
|
|
#+title: Font thing |
|
|
#+author: Antoine "Annwan" COMBET |
|
|
#+author: Antoine "Annwan" COMBET |
|
|
|
|
|
#+options: toc:nil |
|
|
|
|
|
|
|
|
A small bitmap font renderer with its own format. |
|
|
A small bitmap font renderer with its own format. |
|
|
|
|
|
|
|
@ -9,7 +10,7 @@ Introducing /TXTF/ a family of text based bitmap font formats. |
|
|
|
|
|
|
|
|
The first line of a TXTF font is the following: |
|
|
The first line of a TXTF font is the following: |
|
|
#+begin_quote |
|
|
#+begin_quote |
|
|
=TXTF= /mode/ /nbcommentlines/ /file parameters/ |
|
|
|
|
|
|
|
|
=TXTF= /mode/ /nbcommentlines/ /params/ |
|
|
#+end_quote |
|
|
#+end_quote |
|
|
Like |
|
|
Like |
|
|
#+begin_example |
|
|
#+begin_example |
|
@ -27,9 +28,34 @@ the existing mode are as follow |
|
|
** Mode 1 (Monospace) |
|
|
** Mode 1 (Monospace) |
|
|
|
|
|
|
|
|
#+begin_quote |
|
|
#+begin_quote |
|
|
=TXTF= =1= /nbcommentlines/ /width/ /height/ /alphabet/ |
|
|
|
|
|
|
|
|
=TXTF= =1= nbcommentlines width height alphabet |
|
|
|
|
|
|
|
|
/Comment lines/ |
|
|
|
|
|
|
|
|
Comment lines |
|
|
|
|
|
|
|
|
/Data/ |
|
|
|
|
|
|
|
|
Data |
|
|
#+end_quote |
|
|
#+end_quote |
|
|
|
|
|
|
|
|
|
|
|
- /width/: is the number of pixels each character is wide |
|
|
|
|
|
- /height/: is the number of pixels each character is high |
|
|
|
|
|
- /alphabet/: 2 characters, the first represents OFF pixels, the second |
|
|
|
|
|
represents ON pixels. |
|
|
|
|
|
|
|
|
|
|
|
Data is then in the following form |
|
|
|
|
|
#+begin_quote |
|
|
|
|
|
character "/width/ * /height/ of the alphabet for the character" |
|
|
|
|
|
#+end_quote |
|
|
|
|
|
whitespace is ignored in character data. |
|
|
|
|
|
|
|
|
|
|
|
Here is a sample mode 1 font |
|
|
|
|
|
#+begin_src nil |
|
|
|
|
|
TXTF 1 2 6 6 .# |
|
|
|
|
|
Some font for the readme |
|
|
|
|
|
By Annwan |
|
|
|
|
|
!..#.....#.....#...........#......... |
|
|
|
|
|
#.#.#..#####..#.#..#####..#.#........ |
|
|
|
|
|
_........................#####....... |
|
|
|
|
|
#+end_src |
|
|
|
|
|
|
|
|
|
|
|
# Local variables: |
|
|
|
|
|
# eval: (auto-fill-mode +1) |
|
|
|
|
|
# End: |