ayoy / font2bytes

A command-line and GUI tool that converts font images to byte arrays for use in embedded systems
https://kapusta.cc
GNU Lesser General Public License v3.0
20 stars 4 forks source link

font2bytes

A tribute to Lucky Resistor and his FontToBytes MacOS app. This is a multi-platform port of the app that converts font bitmap to array of bytes for use in embedded systems. Read the whole story in my blog post.

Components

Requirements

Building

For the GUI app, use FontToBytes-gui.pro:

$ qmake FontToBytes-gui.pro
$ make
$ ./build/font2bytes

For the command-line tool you can use FontToBytes-cli.pro:

$ qmake FontToBytes-cli.pro
$ make
$ ./build/f2b

or if you don't have Qt (or don't want to use qmake):

$ mkdir build && cd build
$ cmake ..
$ make
$ ./f2b

There's a make install target provided, if you feel like integrating the app within your operating system (make uninstall is present too, also for the CMake build).

Usage

See example font files in templates directory. You'll also find there PSD templates for 8x8 and 16x11 fonts.

Author

Dominik Kapusta http://kapusta.cc

License

LGPL v3.0, see LICENSE for details.