diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-02 14:21:20 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-02 14:21:20 +0000 |
commit | 191e2b1d55c2b93726a092b5eb4d7114af277197 (patch) | |
tree | 07703e6f8f7f5ec3ea1c47a6be0f333de2644f7b /pango/pangowin32-fontmap.c | |
parent | 22865210cbef2f0d1c0d5f481e798390f1b4f059 (diff) | |
download | pango-191e2b1d55c2b93726a092b5eb4d7114af277197.tar.gz |
Patch from Darin Adler, with updates, to use g_ascii_* instead of
Fri Nov 2 08:50:16 2001 Owen Taylor <otaylor@redhat.com>
* pango/{fonts.c,pango-color.c,pango-utils.c,
pangoft2-fontmap.c,pangowin32-fontcache.c,
pangowin32-fontmap.c, pangox-fontmap.c}:
Patch from Darin Adler, with updates, to use
g_ascii_* instead of locale-dependent variants
(#55833).
* pango/fonts.c: Use g_ascii_dtostr, g_ascii_strtod().
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r-- | pango/pangowin32-fontmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 451649c3..7dbefe24 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -725,7 +725,7 @@ pango_win32_insert_font (PangoWin32FontMap *win32fontmap, */ lfp2 = g_new (LOGFONT, 1); *lfp2 = *lfp; - g_strdown (lfp2->lfFaceName); + lfp2->lfFaceName = g_ascii_strdown (lfp2->lfFaceName, -1); size_info = g_hash_table_lookup (win32fontmap->size_infos, lfp); if (!size_info) { @@ -740,7 +740,7 @@ pango_win32_insert_font (PangoWin32FontMap *win32fontmap, /* Convert the LOGFONT into a PangoFontDescription */ - family_name = g_strdup (lfp2->lfFaceName); + family_name = lfp2->lfFaceName; if (!lfp2->lfItalic) style = PANGO_STYLE_NORMAL; @@ -803,7 +803,7 @@ pango_win32_insert_font (PangoWin32FontMap *win32fontmap, win32face->coverage = NULL; win32face->logfont = *lfp; win32face->unicode_table = NULL; - g_strdown (win32face->logfont.lfFaceName); + win32face->logfont.lfFaceName = g_ascii_strdown (lfp->lfFaceName, -1); font_family->font_entries = g_slist_append (font_family->font_entries, win32face); win32fontmap->n_fonts++; |