From 7f6c27e8026699b60e3d475db615ade047d392c6 Mon Sep 17 00:00:00 2001 From: Johns Date: Fri, 24 Sep 2010 20:18:55 +0200 Subject: [PATCH] Added example of input -> output. --- bdf2c.c | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/bdf2c.c b/bdf2c.c index 557d453..4197f07 100644 --- a/bdf2c.c +++ b/bdf2c.c @@ -28,6 +28,49 @@ /// storing bitmap fonts. The content is presented as a text file /// that is intended to be human and computer readable. /// +/// BDF input: +/// @code +/// STARTCHAR A +/// ENCODING 65 +/// SWIDTH 568 0 +/// DWIDTH 8 0 +/// BBX 8 13 0 -2 +/// BITMAP +/// 00 +/// 38 +/// 7C +/// C6 +/// C6 +/// C6 +/// FE +/// C6 +/// C6 +/// C6 +/// C6 +/// 00 +/// 00 +/// ENDCHAR +/// @endcode +/// +/// The result looks like this: +/// @code +/// // 65 $41 'A' +/// // width 8, bbx 0, bby -2, bbw 8, bbh 13 +/// ________, +/// __XXX___, +/// _XXXXX__, +/// XX___XX_, +/// XX___XX_, +/// XX___XX_, +/// XXXXXXX_, +/// XX___XX_, +/// XX___XX_, +/// XX___XX_, +/// XX___XX_, +/// ________, +/// ________, +/// @endcode +/// #include #include @@ -36,7 +79,7 @@ #include #include -#define VERSION "3" ///< version of this application +#define VERSION "4" ///< version of this application ////////////////////////////////////////////////////////////////////////////// @@ -322,7 +365,7 @@ void OutlineCharacter(unsigned char *bitmap, int width, int height) /// /// Read BDF font file. /// -/// @paran bdf file stream for input (bdf file) +/// @param bdf file stream for input (bdf file) /// @param out file stream for output (C source file) /// @param name font variable name in C source file ///