diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-02-12 22:16:11 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-02-12 22:16:11 +0000 |
commit | 40d4e2c55eb7ec4de5156dd26d5b6e1ff71fd7b6 (patch) | |
tree | c89a7a594b73ea146a191d38e2c7f2cf3b96799e /pango | |
parent | 9c0b83ce9873de6cff41134c79fb9c2489a299c3 (diff) | |
download | pango-40d4e2c55eb7ec4de5156dd26d5b6e1ff71fd7b6.tar.gz |
Fix bug where language tag changes were not causing the font to be looked
Wed Feb 12 17:09:00 2003 Owen Taylor <otaylor@redhat.com>
* pango/pango-context.c: Fix bug where language
tag changes were not causing the font to be
looked up again. (bugzilla.redhat.com #84034)
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-context.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c index b2970034..a589cbe9 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -639,8 +639,6 @@ add_engines (PangoContext *context, static guint engine_type_id = 0; static guint render_type_id = 0; - language = next_language; - if (engine_type_id == 0) { engine_type_id = g_quark_from_static_string (PANGO_ENGINE_TYPE_LANG); @@ -651,11 +649,14 @@ add_engines (PangoContext *context, engine_type_id, render_type_id); } - if (i == 0 || !pango_font_description_equal (current_desc, next_desc)) + if (i == 0 || + language != next_language || + !pango_font_description_equal (current_desc, next_desc)) { pango_font_description_free (current_desc); current_desc = next_desc; - + language = next_language; + if (current_fonts) g_object_unref (current_fonts); |