[10569] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] RE: Binary Search in gtk_font_selection_find_font()

daemon@ATHENA.MIT.EDU (Damon Chaplin)
Tue Dec 1 11:36:05 1998

From: "Damon Chaplin" <DAChaplin@email.msn.com>
To: <gtk-list@redhat.com>
Date: Tue, 1 Dec 1998 16:33:36 -0000
In-Reply-To: <36632064.6D0BED4@postman.abisource.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


> Am I wrong in thinking it's busted?  Specifically, it's never
> going to match only the "family" attribute, if the foundry can't be
> found also.  In my case, I'm passing "*" for the foundry (it's 
> unknown) and "times" for my family name, and it's always failing.  
> Stepping through the binary search, I see that when the family name
> matches (as it does on my system, "times" is available), the 
> foundries are then compared.  

I think you're right.
It should remember the position as soon as it finds the family.
Then if it never finds the foundry it returns that saved position.
Is that OK?

It does mean that the foundry that is returned is random,
but I don't think that matters.

I'll fix it.

Damon


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post