From f1c30092b3ed327d2853d3b4dff4b7f00f6b01a4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 31 May 2006 07:42:55 +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 (_hb_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 f95373ce..efeb351f 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 (_hb_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 31214b3e..6444e67d 100644 --- a/pango/opentype/ftglue.c +++ b/pango/opentype/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; } } -- cgit v1.2.1