From 609eae524f2a59f105cb5f97c227ac8b10103e07 Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Tue, 2 May 2000 02:46:58 +0000 Subject: [PATCH] Change to case-insentive compare because the BaKoMa have lower-case names, r:troy,erik. a:troy --- gfx/src/windows/nsFontMetricsWin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/src/windows/nsFontMetricsWin.cpp b/gfx/src/windows/nsFontMetricsWin.cpp index 915e674c41fa..d66e3020091c 100644 --- a/gfx/src/windows/nsFontMetricsWin.cpp +++ b/gfx/src/windows/nsFontMetricsWin.cpp @@ -847,7 +847,7 @@ GetMap(const char* aName, PRUint32* aMap) // linear search to see if we know something about the converter of this font nsFontHasConverter* f = gFontsHaveConverters; while (f->mName) { - if (!strcmp(f->mName, aName)) { + if (!strcmpi(f->mName, aName)) { encoding.AssignWithConversion(f->mEncoding); break; } @@ -890,7 +890,7 @@ GetConverter(const char* aName) // linear search to see if we know something about the converter of this font nsFontHasConverter* f = gFontsHaveConverters; while (f->mName) { - if (!strcmp(f->mName, aName)) { + if (!strcmpi(f->mName, aName)) { encoding.AssignWithConversion(f->mEncoding); break; } @@ -1029,7 +1029,7 @@ nsFontMetricsWin::GetCMAP(HDC aDC, const char* aShortName, int* aFontType, PRUin // a non-unicode font !! nsFontHasConverter* f = gFontsHaveConverters; while (f->mName) { - if (!strcmp(f->mName, aShortName)) + if (!strcmpi(f->mName, aShortName)) { if (aCharset) { *aCharset = DEFAULT_CHARSET;