Bug 130159

Summary: Improve scrolling speed of GtkFontSelection's font/style/size lists.
Product: [openSUSE] SUSE Linux 10.1 Reporter: Zhe Su <zsu>
Component: GNOMEAssignee: Gary Ekker <gekker>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: federico
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch against gtk+ 2.8.6

Description Zhe Su 2005-10-22 16:11:47 UTC
When selecting a new font,style or size in GtkFontSelection, the speed of
updating preview string is very slow, because creating information of a new font
in pango/fontconfig is very slow. So it's very hard for users to scroll the
lists by cursors.

The attached patch solves this issue by moving the font update code into an
async function.

SA: http://bugzilla.gnome.org/show_bug.cgi?id=319483
Comment 1 Zhe Su 2005-10-22 16:12:31 UTC
Created attachment 55155 [details]
Patch against gtk+ 2.8.6
Comment 2 Zhe Su 2005-10-24 12:03:45 UTC
See also upstreaming bug report http://bugzilla.gnome.org/show_bug.cgi?id=319483
Comment 3 JP Rosevear 2005-12-23 12:56:13 UTC
Federico, Are you able to poke upstream on this and/or approve this patch for our gtk2?
Comment 4 Federico Mena Quintero 2005-12-29 01:57:43 UTC
Sure, let's take care of it upstream.

In the meantime, feel free to put the patch as it is in our Pango package.  I think it needs some changes before it can go into CVS.
Comment 5 Federico Mena Quintero 2006-01-10 18:32:08 UTC
Did this patch go in?  Zhe, do you need help in putting it in our Pango package?
Comment 6 Zhe Su 2006-01-11 03:09:14 UTC
I need your help on submitting it into autobuild. It's very inconvenient for me to update the package, because I can only work with build.net right now.
Comment 7 JP Rosevear 2006-01-11 14:38:29 UTC
Re-assigning to Gary for submission.
Comment 8 Gary Ekker 2006-01-18 02:34:45 UTC
Submitted for beta 2.

Federico, if you could give this a nudge upstream, it seems to have stalled there.
Comment 9 Federico Mena Quintero 2006-01-18 15:43:23 UTC
Sorry for not updating the bug.  We are discussing this in performance-list.  It turns out that people have looked into optimizing FcFontSort (the culprit), but it's not easy.