summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-11-14 17:10:30 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-11-14 17:10:30 +0000
commit94476ff1f904e17eae5b6e97023a38cce899cfeb (patch)
treebf5c734d690fee80d7e7b645aacd17b32ee911dd
parentc6c17b5175bb08f7a1f6ae782715ac53cbcabd3d (diff)
downloadpango-94476ff1f904e17eae5b6e97023a38cce899cfeb.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.
-rw-r--r--ChangeLog7
-rw-r--r--pango/pango-context.c11
2 files changed, 14 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 53d385bf..99b8fb1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2006-11-08 Roozbeh Pournader <roozbeh@farsiweb.info>
Bug 350132 – backspacing doesn't work properly for Arabic
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 43a14b69..390d23a0 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1091,15 +1091,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;