]> git.saurik.com Git - wxWidgets.git/commitdiff
Added pango_context_get_language to speed up pango_context_get_metrics
authorJulian Smart <julian@anthemion.co.uk>
Tue, 12 Sep 2006 11:38:17 +0000 (11:38 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 12 Sep 2006 11:38:17 +0000 (11:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp

index b310800c643d8474e22f96edcfd1ac968696582c..5d6c7a9c444377e7096da5e28807a3851e59d234 100644 (file)
@@ -1686,7 +1686,7 @@ wxCoord wxWindowDC::GetCharWidth() const
 
 wxCoord wxWindowDC::GetCharHeight() const
 {
-    PangoFontMetrics *metrics = pango_context_get_metrics (m_context, m_fontdesc, NULL);
+    PangoFontMetrics *metrics = pango_context_get_metrics (m_context, m_fontdesc, pango_context_get_language(m_context));
     return PANGO_PIXELS (pango_font_metrics_get_descent (metrics) + pango_font_metrics_get_ascent (metrics));
 }