summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-11-14 17:09:18 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-11-14 17:09:18 +0000
commit0a3bf41e9d1a8dba3d3b2ea543d291fb74f3fd5b (patch)
tree2bf81957bac30cabe0111397133747769de25f2c /pango/pango-context.c
parent5f5311d86a47c9267aedcc2a54840d601f69a27c (diff)
downloadpango-0a3bf41e9d1a8dba3d3b2ea543d291fb74f3fd5b.tar.gz
Choose shaper/font for unassigned Unicode codepoints too. This is needed
2006-11-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c (itemize_state_process_run): Choose shaper/font for unassigned Unicode codepoints too. This is needed to be able to render scripts being encoded before next version of Unicode is out.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 8aee2a0d..c6814ba8 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1266,15 +1266,18 @@ itemize_state_process_run (ItemizeState *state)
* emulated ideographic space for the primary font wouldn't be the
* right size.
*
- * The exception of PrivateUse characters is indeed necessary to be
- * able to render any of them.
+ * The exception of PrivateUse and Unassigned characters is necessary
+ * to be able to render any of them. (for private or being encoded
+ * scripts, etc.)
*/
/*
if (G_UNLIKELY (!g_unichar_isgraph (wc) && wc != 0x3000 &&
- g_unichar_type (wc) != G_UNICODE_PRIVATE_USE))
+ g_unichar_type (wc) != G_UNICODE_PRIVATE_USE &&
+ g_unichar_type (wc) != G_UNICODE_UNASSIGNED))
*/
if (G_UNLIKELY (!g_unichar_isprint (wc) &&
- g_unichar_type (wc) != G_UNICODE_PRIVATE_USE))
+ g_unichar_type (wc) != G_UNICODE_PRIVATE_USE &&
+ g_unichar_type (wc) != G_UNICODE_UNASSIGNED))
{
shape_engine = NULL;
font = NULL;