summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontcache.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-11-02 14:21:20 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-11-02 14:21:20 +0000
commit191e2b1d55c2b93726a092b5eb4d7114af277197 (patch)
tree07703e6f8f7f5ec3ea1c47a6be0f333de2644f7b /pango/pangowin32-fontcache.c
parent22865210cbef2f0d1c0d5f481e798390f1b4f059 (diff)
downloadpango-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-fontcache.c')
-rw-r--r--pango/pangowin32-fontcache.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/pango/pangowin32-fontcache.c b/pango/pangowin32-fontcache.c
index a99e84d7..8bdf15d3 100644
--- a/pango/pangowin32-fontcache.c
+++ b/pango/pangowin32-fontcache.c
@@ -210,33 +210,33 @@ pango_win32_font_cache_load (PangoWin32FontCache *cache,
/* If we fail, try some similar fonts often found on Windows. */
if (tries == 0)
{
- if (g_strcasecmp (lf.lfFaceName, "helvetica") == 0)
+ if (g_ascii_strcasecmp (lf.lfFaceName, "helvetica") == 0)
strcpy (lf.lfFaceName, "arial");
- else if (g_strcasecmp (lf.lfFaceName, "new century schoolbook") == 0)
+ else if (g_ascii_strcasecmp (lf.lfFaceName, "new century schoolbook") == 0)
strcpy (lf.lfFaceName, "century schoolbook");
- else if (g_strcasecmp (lf.lfFaceName, "courier") == 0)
+ else if (g_ascii_strcasecmp (lf.lfFaceName, "courier") == 0)
strcpy (lf.lfFaceName, "courier new");
- else if (g_strcasecmp (lf.lfFaceName, "lucida") == 0)
+ else if (g_ascii_strcasecmp (lf.lfFaceName, "lucida") == 0)
strcpy (lf.lfFaceName, "lucida sans unicode");
- else if (g_strcasecmp (lf.lfFaceName, "lucidatypewriter") == 0)
+ else if (g_ascii_strcasecmp (lf.lfFaceName, "lucidatypewriter") == 0)
strcpy (lf.lfFaceName, "lucida console");
- else if (g_strcasecmp (lf.lfFaceName, "times") == 0)
+ else if (g_ascii_strcasecmp (lf.lfFaceName, "times") == 0)
strcpy (lf.lfFaceName, "times new roman");
}
else if (tries == 1)
{
- if (g_strcasecmp (lf.lfFaceName, "courier") == 0)
+ if (g_ascii_strcasecmp (lf.lfFaceName, "courier") == 0)
{
strcpy (lf.lfFaceName, "");
lf.lfPitchAndFamily |= FF_MODERN;
}
- else if (g_strcasecmp (lf.lfFaceName, "times new roman") == 0)
+ else if (g_ascii_strcasecmp (lf.lfFaceName, "times new roman") == 0)
{
strcpy (lf.lfFaceName, "");
lf.lfPitchAndFamily |= FF_ROMAN;
}
- else if (g_strcasecmp (lf.lfFaceName, "helvetica") == 0
- || g_strcasecmp (lf.lfFaceName, "lucida") == 0)
+ else if (g_ascii_strcasecmp (lf.lfFaceName, "helvetica") == 0
+ || g_ascii_strcasecmp (lf.lfFaceName, "lucida") == 0)
{
strcpy (lf.lfFaceName, "");
lf.lfPitchAndFamily |= FF_SWISS;