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, 9 Jun 2004 09:46:01 +0200 (CEST)

On Sun, 30 May 2004, Owen Taylor wrote:

> On Fri, 2004-05-28 at 07:42, Roman Bednarek wrote:
> >   Hi
> >   On  gentoo amd64 I have freetype 2.1.5 installed, and the following
> > short program:
> >
> > #include <ft2build.h>
> > #include FT_FREETYPE_H
> > #include FT_GLYPH_H
> > #include FT_OUTLINE_H
> > #include FT_TRIGONOMETRY_H
> >
> > FT_Library library;
> > FT_Face face;
> >
> > int main()
> > {
> >     FT_Init_FreeType( &library );
> >     char *filename="ariali.ttf";
> >     int rc=FT_New_Face( library, filename, 0, &face );
> >     if (rc) return 1;
> >     FT_Set_Pixel_Sizes( face, 2048, 2048 );
> >     FT_Done_Face( face );
> >     FT_Done_FreeType( library );
> >     return 0;
> > }
> >
> > runs about 10s, where on 32 linux it loads font very fast.
> >
> >    The font file ariali.ttf is from Microsoft, arial.ttf and arialbd.ttf
> > fonts are loaded normally (very fast), only italic versions(of all fonts I
> > have) are very slow.
> >    Can you suggest me something I can do to solve that problem? Thank for
> > any help.
>
> When something is this slow, usually the most simple form of profiling
> works; make sure you have FreeType installed with debugging symbols,
> run the program under gdb, hit Control-C, type 'backtrace', see
> where you are. (Then try 'continue' and repeat. You'll probably
> be in the same place.)
>

   Hi.
  I was not able to run (configure) gprof correctly, so I have only used
debugger. 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
2427    in ttinterp.c
(gdb) c
Continuing.

Program received signal SIGINT, Interrupt.
Normalize (exc=0x3ea4, Vx=-1296049129, Vy=16036, R=0x51e29a) at
ttinterp.c:2422
2422    in ttinterp.c
(gdb) c
Continuing.

Program received signal SIGINT, Interrupt.
0x0000002a958b59c1 in Normalize (exc=0x3ea4, Vx=-1664280641, Vy=16036,
R=0x51e29a) at ttinterp.c:2427
2427    in ttinterp.c
(gdb) c
Continuing.

  I hope this will help to find the problem..

  Roman




reply via email to

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