From 716392bd358e3c669a0a8b378d60a20aabfe488d Mon Sep 17 00:00:00 2001 From: "erik%netscape.com" Date: Mon, 3 Apr 2000 22:55:29 +0000 Subject: [PATCH] bug 30022; added support for Enlarge/Reduce Text Size for Unix --- gfx/src/gtk/nsFontMetricsGTK.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/src/gtk/nsFontMetricsGTK.cpp b/gfx/src/gtk/nsFontMetricsGTK.cpp index aec6d73e2a5..107d5bc0bf2 100644 --- a/gfx/src/gtk/nsFontMetricsGTK.cpp +++ b/gfx/src/gtk/nsFontMetricsGTK.cpp @@ -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; }