swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Re: Bug report: pdf2swf says Couldn't load glyph a


From: Matthias Kramm
Subject: Re: [Swftools-common] Re: Bug report: pdf2swf says Couldn't load glyph and segfaults
Date: Mon, 24 Oct 2005 20:18:05 +0200
User-agent: Mutt/1.5.6i

On Mon, Oct 24, 2005 at 10:41:57AM +0300, Oskari 'Okko' Ojala wrote:
> (gdb) backtrace
> #0  FT_Set_Pixel_Sizes (face=0x0, pixel_width=163937896, pixel_height=1024)
>     at /usr/src/debug/freetype-2.1.4/src/base/ftobjs.c:1467

Hm, freetype-2.1.4 refused to load the font entirely...

> (gdb) backtrace
> #0  0x006b97b1 in cff_slot_load (glyph=0x92215a0, size=0x922eca0, 
> glyph_index=8408, load_flags=8)
>     at /opt/temp/inst/freetype-2.1.10/src/cff/cffgload.c:2474

And freetype-2.1.10 crashes on some of the glyphs.

Whatever it is, it's clearly a freetype problem. It's interesting that
the version I use (freetype 2.1.9) doesn't have this problem.

Anyway, let's extract the font that causes this behaviour.

Could you please, in SWFOutputDev.cc (around line 2130), remove
the code

       if(fileName && del)
        unlinkfont(fileName);

? 
After this, run the conversion again, with the -v switch. 
One of the last log messages should read:

VERBOSE updateFont(...) -> /tmp/xxxxxxxxxxxxxxxx (max size: ...)

The file "/tmp/xxxxxxxxxxxxxxxx" is the broken font- could you post it
here? I'll then forward it to the freetype maintainers.

Thanks,

Matthias







reply via email to

[Prev in Thread] Current Thread [Next in Thread]