Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Glyphs not converting correctly #4

Open
gnutronics opened this issue Jan 20, 2017 · 0 comments
Open

Glyphs not converting correctly #4

gnutronics opened this issue Jan 20, 2017 · 0 comments

Comments

@gnutronics
Copy link

gnutronics commented Jan 20, 2017

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant