Hi, Thanks for maintaining bdf2c.
When testing bdf2c from git-master, not all glyphs convert correctly. For example the '!' character in BDF format is:
STARTCHAR 033
ENCODING 33
SWIDTH 288 0
DWIDTH 4 0
BBX 1 5 2 0
BITMAP
80
80
80
00
80
ENDCHAR
bdf2c converts this to:
// 33 $21 '033'
// width 4, bbx 2, bby 0, bbw 1, bbh 5
X___,
X___,
,
X,
XXX,
The characters h, i, j, k, l, also have problems:
// 104 $68 '104'
// width 4, bbx 1, bby 0, bbw 3, bbh 5
X_____,
XX____,
X_X___,
X_X___,
X_____,
// 105 $69 '105'
// width 4, bbx 2, bby 0, bbw 1, bbh 5
,
X,
X,
X_,
X_____,
// 106 $6a '106'
// width 4, bbx 1, bby -1, bbw 2, bbh 6
,
X,
X,
X_,
XX______,
// 107 $6b '107'
// width 4, bbx 1, bby 0, bbw 3, bbh 5
X_____,
X_X___,
XX____,
X_X___,
XX______,
// 108 $6c '108'
// width 4, bbx 2, bby 0, bbw 1, bbh 5
X___,
X___,
X___,
X___,
XX______,
The program is invoked as follows:
$ ./bdf2c -n app775 -b < app775.bdf
The version of bdf2c from sourceforge manages better but still has trouble with the char 'j'.
The font file app775.bdf is attached (zipped: app775.zip). The BDF font was generated by Fony http://hukka.ncn.fi/index.php?fony originally app775.fon taken from a Windows machine.
Any fix or suggested workaround would be really appreciated. Thanks.