зеркало из https://github.com/mozilla/gecko-dev.git
Change to case-insentive compare because the BaKoMa have lower-case names, r:troy,erik. a:troy
This commit is contained in:
Родитель
00aca3cdd8
Коммит
609eae524f
|
@ -847,7 +847,7 @@ GetMap(const char* aName, PRUint32* aMap)
|
||||||
// linear search to see if we know something about the converter of this font
|
// linear search to see if we know something about the converter of this font
|
||||||
nsFontHasConverter* f = gFontsHaveConverters;
|
nsFontHasConverter* f = gFontsHaveConverters;
|
||||||
while (f->mName) {
|
while (f->mName) {
|
||||||
if (!strcmp(f->mName, aName)) {
|
if (!strcmpi(f->mName, aName)) {
|
||||||
encoding.AssignWithConversion(f->mEncoding);
|
encoding.AssignWithConversion(f->mEncoding);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -890,7 +890,7 @@ GetConverter(const char* aName)
|
||||||
// linear search to see if we know something about the converter of this font
|
// linear search to see if we know something about the converter of this font
|
||||||
nsFontHasConverter* f = gFontsHaveConverters;
|
nsFontHasConverter* f = gFontsHaveConverters;
|
||||||
while (f->mName) {
|
while (f->mName) {
|
||||||
if (!strcmp(f->mName, aName)) {
|
if (!strcmpi(f->mName, aName)) {
|
||||||
encoding.AssignWithConversion(f->mEncoding);
|
encoding.AssignWithConversion(f->mEncoding);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1029,7 +1029,7 @@ nsFontMetricsWin::GetCMAP(HDC aDC, const char* aShortName, int* aFontType, PRUin
|
||||||
// a non-unicode font !!
|
// a non-unicode font !!
|
||||||
nsFontHasConverter* f = gFontsHaveConverters;
|
nsFontHasConverter* f = gFontsHaveConverters;
|
||||||
while (f->mName) {
|
while (f->mName) {
|
||||||
if (!strcmp(f->mName, aShortName))
|
if (!strcmpi(f->mName, aShortName))
|
||||||
{
|
{
|
||||||
if (aCharset) {
|
if (aCharset) {
|
||||||
*aCharset = DEFAULT_CHARSET;
|
*aCharset = DEFAULT_CHARSET;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче