Added
Link Here
|
0 |
- |
1 |
--- pangox.c.orig 2021-01-16 11:31:26 UTC |
|
|
2 |
+++ pangox.c |
3 |
@@ -279,7 +279,7 @@ pango_x_font_class_init (PangoXFontClass *class) |
4 |
|
5 |
font_class->describe = pango_x_font_describe; |
6 |
font_class->get_coverage = pango_x_font_get_coverage; |
7 |
- font_class->find_shaper = pango_x_font_find_shaper; |
8 |
+ /* font_class->find_shaper = pango_x_font_find_shaper; */ |
9 |
font_class->get_glyph_extents = pango_x_font_get_glyph_extents; |
10 |
font_class->get_metrics = pango_x_font_get_metrics; |
11 |
font_class->get_font_map = pango_x_font_get_font_map; |
12 |
@@ -1373,12 +1373,11 @@ pango_x_font_find_shaper (PangoFont *font G_GNUC_U |
13 |
PangoLanguage *language, |
14 |
guint32 ch) |
15 |
{ |
16 |
- PangoMap *shape_map = NULL; |
17 |
- PangoScript script; |
18 |
- |
19 |
- shape_map = pango_x_get_shaper_map (language); |
20 |
- script = pango_script_for_unichar (ch); |
21 |
- return (PangoEngineShape *)pango_map_get_engine (shape_map, script); |
22 |
+ static PangoEngineShape *shaper; |
23 |
+ if (g_once_init_enter (&shaper)) |
24 |
+ g_once_init_leave (&shaper, |
25 |
+ _pango_basic_x_script_engine_create("BasicScriptEngineXCompat")); |
26 |
+ return shaper; |
27 |
} |
28 |
|
29 |
/* Utility functions */ |