mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
bug 30022; added support for Enlarge/Reduce Text Size for Unix
This commit is contained in:
parent
d387f95ec4
commit
e9264f0862
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user