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:
550bd14
)
Don't try zeroing mark attachments by Unicode if there's no non-ASCII
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 5 Nov 2015 06:54:49 +0000
(22:54 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 5 Nov 2015 06:59:24 +0000
(22:59 -0800)
src/hb-ot-shape.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-shape.cc
b/src/hb-ot-shape.cc
index
4b2732b
..
8d4b169
100644
(file)
--- a/
src/hb-ot-shape.cc
+++ b/
src/hb-ot-shape.cc
@@
-621,6
+621,9
@@
zero_mark_width (hb_glyph_position_t *pos)
static inline void
zero_mark_widths_by_unicode (hb_buffer_t *buffer, bool adjust_offsets)
{
+ if (!(buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII))
+ return;
+
unsigned int count = buffer->len;
hb_glyph_info_t *info = buffer->info;
for (unsigned int i = 0; i < count; i++)