freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Slow FT_Set_Pixel_Sizes function on amd64


From: Roman Bednarek
Subject: Re: [Freetype] Slow FT_Set_Pixel_Sizes function on amd64
Date: Wed, 16 Jun 2004 10:08:27 +0200 (CEST)

On Tue, 15 Jun 2004, Werner LEMBERG wrote:

> > It shows a loop in ttinterp.c :
> > Program received signal SIGINT, Interrupt.
> > [Switching to Thread 16384 (LWP 26094)]
> > 0x0000002a958b59ba in Normalize (exc=0x3ea4, Vx=-1025486556, Vy=16036,
> > R=0x51e29a) at ttinterp.c:2427
>
> The value of Vx is abnormously big.  What we need is a backtrace.
> Please run the debugger as before, do a C-c to interrupt, then type
> `bt all' and send the result.
>
> BTW, do you get the slow speed with any fonts or just a particular
> one?  What happens if you load the glyphs with `FT_LOAD_PEDANTIC'?
>
  Here is the backtrace:
(gdb) bt full
#0  0x0000002a9589c9ba in Normalize (exc=0x3ea4, Vx=-947771462, Vy=16036, 
R=0x51e29a) at ttinterp.c:2427
        W = 898270744438770740
        S1 = 0 '\0'
        S2 = 0 '\0'
#1  0x0000002a9589cadc in Ins_SxVTL (exc=0x3ea4, aIdx1=55568, aIdx2=13092, 
aOpc=0, Vec=0x17) at ttinterp.c:2485
        A = 0
        B = 16036
        C = 898270744181617444
        p1 = (FT_Vector *) 0xc774c7b8b123324
        p2 = (FT_Vector *) 0xf53d910
#2  0x0000002a9589fb38 in TT_RunIns (exc=0x51e0d0) at ttinterp.c:7043
        args = (FT_Long *) 0x51f578
        ins_counter = 1289
#3  0x0000002a9589b08e in Reset_Outline_Size (size=0x51bcd0) at
ttobjs.c:667
        exec = 0x51e0d0
        i = 5365968
        j = 2333225764
        face = 0x510660
        error = 0
        metrics = (FT_Size_Metrics *) 0x51e0d0
#4  0x0000002a9589b2e0 in tt_size_reset (size=0x51bcd0) at ttobjs.c:803
        face = 0x510660
        error = 0
#5  0x0000002a9586ae40 in FT_Set_Pixel_Sizes (face=0x510660,
pixel_width=2048, pixel_height=2048) at ftobjs.c:2091
        error = 0
        clazz = 0x2a959ce2e0
        metrics = (FT_Size_Metrics *) 0x51bce8
#6  0x0000000000400ab5 in main () at ../../src/freetype/testcase.cpp:16
        filename = 0x400c2c "ariali.ttf"
        rc = 0

  It does work fine with some fonts, arial.ttf, arialdb.ttf are ok
ariali.ttf and arialbi.ttf are slow.
 I do not load glyphs in the example, so I do not know where place 
FT_LOAD_PEDANTIC
option.

   Roman Bednarek



reply via email to

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