summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-05-02 07:49:38 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-05-02 07:49:38 +0000
commit3ccbff752c8d00078f0a1325de7516051dc42c8d (patch)
tree2df0342b8c48fa96422d8eb7a3e735a51d9616eb /pango/break.c
parent2eec510f3f474a47bff87b8d021e75152a4d9884 (diff)
downloadpango-3ccbff752c8d00078f0a1325de7516051dc42c8d.tar.gz
Add is_expandable_space to PangoLogAttr.
2007-05-02 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/main.sgml: * pango/break.c (pango_default_break): * pango/pango-break.h: Add is_expandable_space to PangoLogAttr. svn path=/trunk/; revision=2250
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/break.c b/pango/break.c
index e159b024..091d2541 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -627,6 +627,9 @@ pango_default_break (const gchar *text,
*/
attrs[i].is_white = g_unichar_isspace (wc);
+ /* Just few spaces have variable width. So explicitly mark them.
+ */
+ attrs[i].is_expandable_space = (0x0020 == wc || 0x00A0 == wc);
/* ---- Cursor position breaks (Grapheme breaks) ---- */