summaryrefslogtreecommitdiff
path: root/pango/pangowin32.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2006-02-10 12:57:02 +0000
committerTor Lillqvist <tml@src.gnome.org>2006-02-10 12:57:02 +0000
commit09858acc9e7d49557c752545ca1cce57db178ce1 (patch)
tree2ffa6deda6f159b1855c37c074bd2b575ce840a5 /pango/pangowin32.h
parentc8c1c05937fd743dc49709bf8bfeff04ac0c0d00 (diff)
downloadpango-09858acc9e7d49557c752545ca1cce57db178ce1.tar.gz
Fix #135098 and #322510.
2006-02-10 Tor Lillqvist <tml@novell.com> Fix #135098 and #322510. * pango/pangowin32-fontmap.c (case_insensitive_hash) (case_insensitive_equal): New helper functions for string hashing based on ASCII case insensitivity. (logfont_nosize_hash): Use case_insensitive_hash(). (logfont_nosize_equal): Use case_insensitive_equal(). (pango_win32_font_map_init): Use the case-insensitive functions for the PangoWin32FontMap::families hash table. (pango_win32_font_map_load_font): Consequently we don't need to lowercase the name before looking up from the hash table. (get_family_name): Constify parameter. (get_family_name_lowercase): Not needed any longer. (pango_win32_pango_font_description_from_logfont): New public function. Code moved from pango_win32_insert_font(). Use family name as such, don't lowercase it. (pango_win32_insert_font): Use the above new function. Don't bother looking for superfluos copies of the font entry as that shouldn't ever happen. We have pruned out fonts that differ only in charset already earlier. * pango/pangowin32.h: Declare pango_win32_pango_font_description_from_logfont().
Diffstat (limited to 'pango/pangowin32.h')
-rw-r--r--pango/pangowin32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangowin32.h b/pango/pangowin32.h
index 6f025d7a..dc1aef14 100644
--- a/pango/pangowin32.h
+++ b/pango/pangowin32.h
@@ -106,6 +106,8 @@ PangoWin32FontCache *pango_win32_font_map_get_font_cache (PangoFontMap *fo
LOGFONT *pango_win32_font_logfont (PangoFont *font);
+PangoFontDescription *pango_win32_pango_font_description_from_logfont (const LOGFONT *lfp);
+
G_END_DECLS
#endif /* __PANGOWIN32_H__ */