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:
0f40732
)
Skip GPOS cursive / attachment adjustmnent if none happened
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 5 Nov 2015 06:42:41 +0000
(22:42 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 5 Nov 2015 06:47:30 +0000
(22:47 -0800)
I'm starting to really like how free these new scratch_flags are.
src/hb-ot-layout-gpos-table.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout-gpos-table.hh
b/src/hb-ot-layout-gpos-table.hh
index
568b5f6
..
3bb0913
100644
(file)
--- a/
src/hb-ot-layout-gpos-table.hh
+++ b/
src/hb-ot-layout-gpos-table.hh
@@
-1602,6
+1602,9
@@
GPOS::position_finish (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
for (unsigned int i = 0; i < len; i++)
fix_cursive_minor_offset (pos, i, direction);
+ if (!(buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII))
+ return;
+
/* Handle attachments */
for (unsigned int i = 0; i < len; i++)
fix_mark_attachment (pos, i, direction);