projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75483aa
)
If font doesn't support U+2011, fall back to U+2010
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 5 Nov 2015 01:45:06 +0000
(17:45 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 5 Nov 2015 01:45:56 +0000
(17:45 -0800)
Test passes now.
src/hb-ot-shape-normalize.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-shape-normalize.cc
b/src/hb-ot-shape-normalize.cc
index
91dff11
..
c1907e8
100644
(file)
--- a/
src/hb-ot-shape-normalize.cc
+++ b/
src/hb-ot-shape-normalize.cc
@@
-197,6
+197,16
@@
decompose_current_character (const hb_ot_shape_normalize_context_t *c, bool shor
}
}
+ if (u == 0x2011u)
+ {
+ hb_codepoint_t other_glyph;
+ if (c->font->get_glyph (0x2010u, 0, &other_glyph))
+ {
+ next_char (buffer, other_glyph);
+ return;
+ }
+ }
+
next_char (buffer, glyph); /* glyph is initialized in earlier branches. */
}