зеркало из https://github.com/mozilla/gecko-dev.git
r=mkaply, a=blizzard
More ugliness for Russian on OS/2 - some pages use "arial"
This commit is contained in:
Родитель
b406587967
Коммит
94a2a3d6da
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче