mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
parent
2a9da7b0a3
commit
6b989cdd28
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user