|
From: c j. <cj...@ho...> - 2003-02-26 13:29:44
|
I notice a few people have complained of strange behaviour when
using "arial.fdb" within Ming. I think that Ming sees it as an ASCII font
where its really a widechar font. this then causes a memory write error in
SWF_buildReverseMapping(SWFFont Font) in font.c
A fix which seems to work is to add the following lines to
loadSWFFontFromFile(File* file) in font.c
after the line:
nGlyphs = readUInt16(file);
add:
if (nGlyphs > 256)
font->flags |= SWF_FONT_WIDECODES;
and then rebuild.
I haven't had a chance to thoroughly look at code and figure out if this is
a long-term valid solution or not, but it at least seems to avoid the memory
problems and I hope it can be useful for others.
Col.
_________________________________________________________________
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
|