From a8c5e1a9d1f56190e2d87aadc40a75589585af1f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 12 Sep 2006 11:38:17 +0000 Subject: [PATCH] Added pango_context_get_language to speed up pango_context_get_metrics git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dcclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index b310800c64..5d6c7a9c44 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -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)); }