fintic-tracker/fonts
Justin 8e23669014
bonus coffee font for jokes feature
2023-07-17 15:56:15 +08:00
..
4x6.bdf bug fixes 2021-12-06 20:10:14 +00:00
4x6.pbm bug fixes 2021-12-06 20:10:14 +00:00
4x6.pil bug fixes 2021-12-06 20:10:14 +00:00
5x7.bdf bug fixes 2021-12-06 20:10:14 +00:00
5x7.pbm bug fixes 2021-12-06 20:10:14 +00:00
5x7.pil bug fixes 2021-12-06 20:10:14 +00:00
5x8.bdf bug fixes 2021-12-06 20:10:14 +00:00
5x8.pbm bug fixes 2021-12-06 20:10:14 +00:00
5x8.pil bug fixes 2021-12-06 20:10:14 +00:00
6x9.bdf bug fixes 2021-12-06 20:10:14 +00:00
6x9.pbm bug fixes 2021-12-06 20:10:14 +00:00
6x9.pil bug fixes 2021-12-06 20:10:14 +00:00
6x10.bdf bug fixes 2021-12-06 20:10:14 +00:00
6x10.pbm bug fixes 2021-12-06 20:10:14 +00:00
6x10.pil bug fixes 2021-12-06 20:10:14 +00:00
6x12.bdf bug fixes 2021-12-06 20:10:14 +00:00
6x12.pbm bug fixes 2021-12-06 20:10:14 +00:00
6x12.pil bug fixes 2021-12-06 20:10:14 +00:00
6x13.bdf bug fixes 2021-12-06 20:10:14 +00:00
6x13.pbm bug fixes 2021-12-06 20:10:14 +00:00
6x13.pil bug fixes 2021-12-06 20:10:14 +00:00
6x13B.bdf bug fixes 2021-12-06 20:10:14 +00:00
6x13B.pbm bug fixes 2021-12-06 20:10:14 +00:00
6x13B.pil bug fixes 2021-12-06 20:10:14 +00:00
6x13O.bdf bug fixes 2021-12-06 20:10:14 +00:00
6x13O.pbm bug fixes 2021-12-06 20:10:14 +00:00
6x13O.pil bug fixes 2021-12-06 20:10:14 +00:00
7x13.bdf bug fixes 2021-12-06 20:10:14 +00:00
7x13.pbm bug fixes 2021-12-06 20:10:14 +00:00
7x13.pil bug fixes 2021-12-06 20:10:14 +00:00
7x13B.bdf bug fixes 2021-12-06 20:10:14 +00:00
7x13B.pbm bug fixes 2021-12-06 20:10:14 +00:00
7x13B.pil bug fixes 2021-12-06 20:10:14 +00:00
7x13O.bdf bug fixes 2021-12-06 20:10:14 +00:00
7x13O.pbm bug fixes 2021-12-06 20:10:14 +00:00
7x13O.pil bug fixes 2021-12-06 20:10:14 +00:00
7x14.bdf bug fixes 2021-12-06 20:10:14 +00:00
7x14.pbm bug fixes 2021-12-06 20:10:14 +00:00
7x14.pil bug fixes 2021-12-06 20:10:14 +00:00
7x14B.bdf bug fixes 2021-12-06 20:10:14 +00:00
7x14B.pbm bug fixes 2021-12-06 20:10:14 +00:00
7x14B.pil bug fixes 2021-12-06 20:10:14 +00:00
8x13.bdf bug fixes 2021-12-06 20:10:14 +00:00
8x13.pbm bug fixes 2021-12-06 20:10:14 +00:00
8x13.pil bug fixes 2021-12-06 20:10:14 +00:00
8x13B.bdf bug fixes 2021-12-06 20:10:14 +00:00
8x13B.pbm bug fixes 2021-12-06 20:10:14 +00:00
8x13B.pil bug fixes 2021-12-06 20:10:14 +00:00
8x13O.bdf bug fixes 2021-12-06 20:10:14 +00:00
8x13O.pbm bug fixes 2021-12-06 20:10:14 +00:00
8x13O.pil bug fixes 2021-12-06 20:10:14 +00:00
9x15.bdf bug fixes 2021-12-06 20:10:14 +00:00
9x15.pbm bug fixes 2021-12-06 20:10:14 +00:00
9x15.pil bug fixes 2021-12-06 20:10:14 +00:00
9x15B.bdf bug fixes 2021-12-06 20:10:14 +00:00
9x15B.pbm bug fixes 2021-12-06 20:10:14 +00:00
9x15B.pil bug fixes 2021-12-06 20:10:14 +00:00
9x18.bdf bug fixes 2021-12-06 20:10:14 +00:00
9x18.pbm bug fixes 2021-12-06 20:10:14 +00:00
9x18.pil bug fixes 2021-12-06 20:10:14 +00:00
9x18B.bdf bug fixes 2021-12-06 20:10:14 +00:00
9x18B.pbm bug fixes 2021-12-06 20:10:14 +00:00
9x18B.pil bug fixes 2021-12-06 20:10:14 +00:00
10x20.bdf bug fixes 2021-12-06 20:10:14 +00:00
10x20.pbm bug fixes 2021-12-06 20:10:14 +00:00
10x20.pil bug fixes 2021-12-06 20:10:14 +00:00
AUTHORS bug fixes 2021-12-06 20:10:14 +00:00
BonusCoffee-16.bdf bonus coffee font for jokes feature 2023-07-17 15:56:15 +08:00
BonusCoffee-16.pbm bonus coffee font for jokes feature 2023-07-17 15:56:15 +08:00
BonusCoffee-16.pil bonus coffee font for jokes feature 2023-07-17 15:56:15 +08:00
README bug fixes 2021-12-06 20:10:14 +00:00
README.md bug fixes 2021-12-06 20:10:14 +00:00
clR6x12.bdf bug fixes 2021-12-06 20:10:14 +00:00
clR6x12.pbm bug fixes 2021-12-06 20:10:14 +00:00
clR6x12.pil bug fixes 2021-12-06 20:10:14 +00:00
helvR12.bdf bug fixes 2021-12-06 20:10:14 +00:00
helvR12.pbm bug fixes 2021-12-06 20:10:14 +00:00
helvR12.pil bug fixes 2021-12-06 20:10:14 +00:00
texgyre-27.bdf bug fixes 2021-12-06 20:10:14 +00:00
texgyre-27.pbm bug fixes 2021-12-06 20:10:14 +00:00
texgyre-27.pil bug fixes 2021-12-06 20:10:14 +00:00
tom-thumb.bdf bug fixes 2021-12-06 20:10:14 +00:00
tom-thumb.pbm bug fixes 2021-12-06 20:10:14 +00:00
tom-thumb.pil bug fixes 2021-12-06 20:10:14 +00:00

README.md

Provided fonts

These are BDF fonts, a simple bitmap font-format that can be created by many font tools. Given that these are bitmap fonts, they will look good on very low resolution screens such as the LED displays.

Fonts in this directory (except tom-thumb.bdf) are public domain (see the README) and help you to get started with the font support in the API or the text-util from the utils/ directory.

Tom-Thumb.bdf is included in this directory under MIT license. Tom-thumb.bdf was created by @robey and originally published at https://robey.lag.net/2010/01/23/tiny-monospace-font.html

The texguire-27.bdf font was created using the otf2bdf tool from the TeX Gyre font.

otf2bdf -v -o texgyre-27.bdf -r 72 -p 27 texgyreadventor-regular.otf

Create your own

Fonts are in a human readable and editbable *.bdf format, but unless you like reading and writing pixels in hex, generating them is probably easier :)

You can use any font-editor to generate a BDF font or use the conversion tool otf2bdf to create one from some other font format.

Here is an example how you could create a 30pixel high BDF font from some TrueType font:

otf2bdf -v -o myfont.bdf -r 72 -p 30 /path/to/font-Bold.ttf

Getting otf2bdf

Installing the tool should be fairly straight-foward

sudo apt-get install otf2bdf

Compiling otf2bdf

If you like to compile otf2bdf, you might notice that the configure script uses some old way of getting the freetype configuration. There does not seem to be much activity on the mature code, so let's patch that first:

sudo apt-get install -y libfreetype6-dev pkg-config autoconf
git clone https://github.com/jirutka/otf2bdf.git   # check it out
cd otf2bdf
patch -p1 <<"EOF"
--- a/configure.in
+++ b/configure.in
@@ -5,8 +5,8 @@ AC_INIT(otf2bdf.c)
 AC_PROG_CC

 OLDLIBS=$LIBS
-LIBS="$LIBS `freetype-config --libs`"
-CPPFLAGS="$CPPFLAGS `freetype-config --cflags`"
+LIBS="$LIBS `pkg-config freetype2 --libs`"
+CPPFLAGS="$CPPFLAGS `pkg-config freetype2 --cflags`"
 AC_CHECK_LIB(freetype, FT_Init_FreeType, LIBS="$LIBS -lfreetype",[
              AC_MSG_ERROR([Can't find Freetype library! Compile FreeType first.])])
 AC_SUBST(LIBS)
EOF

autoconf       # rebuild configure script
./configure    # run configure
make           # build the software
sudo make install   # install it