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
This commit is contained in:
Julian Smart 2006-09-12 11:38:17 +00:00
parent e637208a32
commit a8c5e1a9d1

View File

@ -1686,7 +1686,7 @@ wxCoord wxWindowDC::GetCharWidth() const
wxCoord wxWindowDC::GetCharHeight() 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)); return PANGO_PIXELS (pango_font_metrics_get_descent (metrics) + pango_font_metrics_get_ascent (metrics));
} }