提交 ffb2d5c1 编写于 作者: B Behdad Esfahbod 提交者: Behdad Esfahbod

Bug 341138 – Using TTC font, Gtk2 programs begin to eating big memory

2006-05-31  Behdad Esfahbod  <behdad@gnome.org>

        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.
上级 f8f7bd24
...@@ -281,7 +281,7 @@ _hb_ftglue_face_goto_table( FT_Face face, ...@@ -281,7 +281,7 @@ _hb_ftglue_face_goto_table( FT_Face face,
if ( tag == the_tag ) if ( tag == the_tag )
{ {
LOG(( "TrueType table (start: %ld) (size: %ld)\n", start, size )); 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; goto FoundIt;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册