[pango] Don't treat U+1680 OGHAM SPACE MARK as whitespace
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Don't treat U+1680 OGHAM SPACE MARK as whitespace
- Date: Sat, 12 Mar 2016 02:38:25 +0000 (UTC)
commit 70496056909faa41b368dbbe22cd144eaa07d22b
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Mar 11 18:21:15 2016 -0800
Don't treat U+1680 OGHAM SPACE MARK as whitespace
Unicode says: "U+1680 ogham space mark is unusual in that it is generally
rendered with a visible horizontal line, rather than being blank."
pango/pango-context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 9d67b8e..0344e33 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1400,7 +1400,7 @@ itemize_state_process_run (ItemizeState *state)
if (G_UNLIKELY (type == G_UNICODE_CONTROL ||
type == G_UNICODE_FORMAT ||
type == G_UNICODE_SURROGATE ||
- type == G_UNICODE_SPACE_SEPARATOR))
+ (type == G_UNICODE_SPACE_SEPARATOR && wc != 0x1680u /* OGHAM SPACE MARK */)))
{
shape_engine = NULL;
font = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]