mirror of
https://github.com/zyphlar/bdf2c.git
synced 2024-03-08 13:47:46 +00:00
Johns
2fac095727
The name of the C font structure can be given on the command line.
Fixed small bugs: missing '=' in structure initializer, missing const.
My version of BDF fonts convertor to C includes, which can be used to embed fonts into the executable. Usage: ./bdf2c -c Print #defines for font files to stdout. ./bdf2c -C font.h Create font.h, which contains #defines for fonts. ./bdf2c -b < font.bdf > font.c Create font.c which contains the converted bdf font. The C file contains: Bitmap data for the characters. Character width table for proportional font Character codes table for utf-8 font TODO: Proportional fonts (f.e. generated from ttf2bdf) aren't yet supported.
Description
Converts bdf font files into C include files. The Bitmap Distribution Format (BDF) is a file format for storing bitmap fonts. The content is presented as a text file that is intended to be human and computer readable.
Languages
C
87%
Roff
6.5%
Makefile
6.5%