r=mkaply, a=blizzard
Code from Dmitry Kubov to fix Arial
This commit is contained in:
mkaply%us.ibm.com 2000-11-07 22:50:46 +00:00
parent 2a9da7b0a3
commit 6b989cdd28

View File

@ -513,6 +513,9 @@ static PRBool
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))
return PR_TRUE; // don't stop
metrics->mFonts.AppendString(aFamily);
metrics->mFontIsGeneric.AppendElement((void*) aGeneric);
if (aGeneric) {