From 88790d7e97caa9a9674cc938dcce7f6b1cb840ed Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 31 May 2006 07:44:14 +0000 Subject: =?UTF-8?q?Bug=20341138=20=E2=80=93=20Using=20TTC=20font,=20Gtk2?= =?UTF-8?q?=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 (ftglue_face_goto_table): TrueType table offsets are absolute, not relative. --- ChangeLog | 9 +++++++++ pango/opentype/ftglue.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 40568a90..dc94e68e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +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 (ftglue_face_goto_table): TrueType table + offsets are absolute, not relative. + 2006-05-31 Behdad Esfahbod Bug 336153 – Mark to mark positioning (Lookup Type 6) isn't correct diff --git a/pango/opentype/ftglue.c b/pango/opentype/ftglue.c index b3fd5b2d..76a62001 100644 --- a/pango/opentype/ftglue.c +++ b/pango/opentype/ftglue.c @@ -331,7 +331,7 @@ ftglue_face_goto_table( FT_Face face, if ( tag == the_tag ) { LOG(( "TrueType table (start: %ld) (size: %ld)\n", start, size )); - error = ftglue_stream_seek( stream, offset+start ); + error = ftglue_stream_seek( stream, start ); goto FoundIt; } } -- cgit v1.2.1