From ffb2d5c1e7af33644d0a4058befa4b8358c9a7bf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 31 May 2006 07:42:55 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20341138=20=E2=80=93=20Using=20TTC=20font,?= =?UTF-8?q?=20Gtk2=20programs=20begin=20to=20eating=20big=20memory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-05-31 Behdad Esfahbod Bug 341138 – Using TTC font, Gtk2 programs begin to eating big memory and have many cpu usage. Patch from Yong Li. * pango/opentype/ftglue.c (_hb_ftglue_face_goto_table): TrueType table offsets are absolute, not relative. --- src/ftglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftglue.c b/src/ftglue.c index 31214b3e1..6444e67d7 100644 --- a/src/ftglue.c +++ b/src/ftglue.c @@ -281,7 +281,7 @@ _hb_ftglue_face_goto_table( FT_Face face, if ( tag == the_tag ) { LOG(( "TrueType table (start: %ld) (size: %ld)\n", start, size )); - error = _hb_ftglue_stream_seek( stream, offset+start ); + error = _hb_ftglue_stream_seek( stream, start ); goto FoundIt; } }