More ugliness for Russian on OS/2 - some pages use "arial"
This commit is contained in:
mkaply%us.ibm.com 2000-11-16 15:37:44 +00:00
Родитель b406587967
Коммит 94a2a3d6da
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -514,7 +514,7 @@ FontEnumCallback(const nsString& aFamily, PRBool aGeneric, void *aData)
{
nsFontMetricsOS2* metrics = (nsFontMetricsOS2*) aData;
/* Hack for Truetype on OS/2 - if it's Arial and not 1252, just get another font */
if ((metrics->mCodePage != 1252) && (aFamily.Find("Arial") != -1))
if ((metrics->mCodePage != 1252) && (aFamily.Find("Arial", IGNORE_CASE) != -1))
return PR_TRUE; // don't stop
metrics->mFonts.AppendString(aFamily);
metrics->mFontIsGeneric.AppendElement((void*) aGeneric);