Change to case-insentive compare because the BaKoMa have lower-case names, r:troy,erik. a:troy

This commit is contained in:
rbs%maths.uq.edu.au 2000-05-02 02:46:58 +00:00
Родитель 00aca3cdd8
Коммит 609eae524f
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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;