summaryrefslogtreecommitdiff
path: root/pango/pangox.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangox.c')
-rw-r--r--pango/pangox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangox.c b/pango/pangox.c
index 0e03afaa..a9f0b3b1 100644
--- a/pango/pangox.c
+++ b/pango/pangox.c
@@ -1361,9 +1361,11 @@ pango_x_font_find_shaper (PangoFont *font,
guint32 ch)
{
PangoMap *shape_map = NULL;
+ PangoScript script;
shape_map = pango_x_get_shaper_map (language);
- return (PangoEngineShape *)pango_map_get_engine (shape_map, ch);
+ script = pango_script_for_unichar (ch);
+ return (PangoEngineShape *)pango_map_get_engine (shape_map, script);
}
/* Utility functions */