summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-02-12 22:19:27 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-02-12 22:19:27 +0000
commitdbc0cf530771402599f8941d461b23b0263eb49a (patch)
tree2bf509f6dfcfb8f56cc2c4476d119add2f2e3f1e /pango/pango-context.c
parent8dc3104e2770f07424a39a824a8960ad5d60dfb3 (diff)
downloadpango-dbc0cf530771402599f8941d461b23b0263eb49a.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/pango-context.c')
-rw-r--r--pango/pango-context.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 7ed5b5ef..3a5d84f1 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -637,8 +637,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);
@@ -649,11 +647,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);