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.
Go to file
2014-09-10 20:53:47 -04:00
.gitattributes Documentation and release cleanups. 2010-09-24 16:55:01 +02:00
.gitignore Documentation and release cleanups. 2010-09-24 16:55:01 +02:00
AGPL-3.0.txt Documentation and release cleanups. 2010-09-24 16:55:01 +02:00
bdf2c.1 Documentation and release cleanups. 2010-09-24 16:55:01 +02:00
bdf2c.c Better positioning of characters with smaller bounding box than font's bounding box, and using yoffset from both font and character 2014-09-10 20:53:47 -04:00
bdf2c.doxyfile Documentation and release cleanups. 2010-09-24 16:55:01 +02:00
Changelog.txt Documentation and release cleanups. 2010-09-24 16:55:01 +02:00
Makefile Fixed changelog file name in makefile. 2010-09-24 17:42:06 +02:00
README.txt Documentation and release cleanups. 2010-09-24 16:55:01 +02:00

@file README		@brief	BDF Font to C source convertor readme

Copyright (c) 2009, 2010 by Lutz Sammer.  All Rights Reserved.

Contributor(s):

License: AGPLv3

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

$Id$

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.
	Example how to use the created font file.