bug 30022; added support for Enlarge/Reduce Text Size for Unix

This commit is contained in:
erik%netscape.com 2000-04-03 22:55:29 +00:00
parent d387f95ec4
commit e9264f0862

View File

@ -199,7 +199,9 @@ NS_IMETHODIMP nsFontMetricsGTK::Init(const nsFont& aFont, nsIAtom* aLangGroup,
}
}
}
mPixelSize = NSToIntRound(app2dev * factor * mFont->size);
float textZoom = 1.0;
mDeviceContext->GetTextZoom(textZoom);
mPixelSize = NSToIntRound(app2dev * textZoom * factor * mFont->size);
if (mPixelSize < minimum) {
mPixelSize = minimum;
}