GNOME Bugzilla – Bug 106942
pango_font_description_hash vs. pango_font_description_equal
Last modified: 2004-12-22 21:47:04 UTC
pango_font_description_hash is case sensitive. pango_font_description_equal is case INsensitive. (Why?) That's not a valid combination for making a hash table. (Maybe pango_font_description_set_family should do the lower-casing if it is really needed.)
I've just made the hash function case insensitive; I want to preserve the ability to pass strings cased for better legibility through a font description; and while would might be possible to cache a lower-cased version of the name in the font description, I'm guessing that the performance win would be small... ASCII lowercasing is fast. (And that's all that we are doing.) Wed Apr 30 16:46:52 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_hash): Hash case insensitively (#106942, Morten Welinder)