nsFontMetricsPango::nsFontMetricsPango()
{
-@@ -228,14 +228,20 @@
+@@ -169,15 +228,21 @@
mLangGroup = aLangGroup;
// Hang on to the device context
+ mDeviceContext = (nsDeviceContextPS *)aContext;
+#else
mDeviceContext = aContext;
+-
+#endif
-
++
mPointSize = NSTwipsToFloatPoints(mFont.size);
+#ifndef PSPANGO
// don't make the X server blow up.
nscoord screenPixels = gdk_screen_height();
mPointSize = PR_MIN((screenPixels - 1) * FONT_MAX_FONT_SCALE, mPointSize);
+ mPointSize = PR_MIN(2000, mPointSize);
+#endif
// enumerate over the font names passed in