Okay, vfdlib (as written) doesn't seem to be working for me with 3.0 fonts. Here's where vfdlib_registerFont bombs out:


if (bfHeader.version == 2) {
fseek(fp, bfHeader2.offset, SEEK_SET);
if (fread(cOffset, sizeof(CharOff), totalChars, fp) < totalChars) {
fclose(fp);
return -1;
}
}

.

I threw in some debug and the fread() call seems to be reading 115 chars, and totalChars seems to always be 200.

I tried having it continue on regardless of what fread() returns, and after everything loads up, this is what I get in emphatic:


The characters all seem to be formed properly (individually) but the character map seems out of place... Watching lyrics scroll by looks pretty funny.

Any idea what's up? I'm using small.bf, medium.bf, and large.bf (the 3.0 versions.)


Attachments
179356-emphatic-fux0r3d.gif (146 downloads)

_________________________
- Tony C
my empeg stuff