diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 6 | ||||
-rw-r--r-- | pango/pango-context.c | 14 |
5 files changed, 37 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon Sep 13 10:18:51 2004 Owen Taylor <otaylor@redhat.com> + + * pango/pango-context.c (itemize_state_process_run): + Except ideographic spaces from the !g_unichar_isgraph() test. + (#145275, Federic Zhang) + Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c (get_face_metrics): diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index cc2d7991..97a2c98a 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +Mon Sep 13 10:18:51 2004 Owen Taylor <otaylor@redhat.com> + + * pango/pango-context.c (itemize_state_process_run): + Except ideographic spaces from the !g_unichar_isgraph() test. + (#145275, Federic Zhang) + Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c (get_face_metrics): diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index cc2d7991..97a2c98a 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,9 @@ +Mon Sep 13 10:18:51 2004 Owen Taylor <otaylor@redhat.com> + + * pango/pango-context.c (itemize_state_process_run): + Except ideographic spaces from the !g_unichar_isgraph() test. + (#145275, Federic Zhang) + Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c (get_face_metrics): diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index cc2d7991..97a2c98a 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,9 @@ +Mon Sep 13 10:18:51 2004 Owen Taylor <otaylor@redhat.com> + + * pango/pango-context.c (itemize_state_process_run): + Except ideographic spaces from the !g_unichar_isgraph() test. + (#145275, Federic Zhang) + Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c (get_face_metrics): diff --git a/pango/pango-context.c b/pango/pango-context.c index 83873d5c..79b70187 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -1063,7 +1063,19 @@ itemize_state_process_run (ItemizeState *state) PangoEngineShape *shape_engine; PangoFont *font; - if (!g_unichar_isgraph (wc)) + /* We don't want space characters to affect font selection; in general, + * it's always wrong to select a font just to render a space. + * To make this really work well, we'd need to emulate missing + * space characters, which we don't yet do, so we sometimes + * will get hex boxes. + * + * The exception of U+3000 (IDEOGRAPHIC SPACE) here is because we + * want to choose an ideographic space that matches ideographic text + * in cell width. Even if we were emulating missing spaces, an + * emulated ideographic space for the primary font wouldn't be the + * right size. + */ + if (!g_unichar_isgraph (wc) && wc != 0x3000) { shape_engine = NULL; font = NULL; |