[HarfBuzz] Can I only reshape broken clusters?
Kelvin Ma
kelvinsthirteen at gmail.com
Fri Jul 1 03:31:58 UTC 2016
If I have the string A = 'affifibcd' and the master list of shaped glyphs
[a 0] [ffi 1] [fi 4] [b 6] [c 7] [d 8]
and I wanted to shape the substring A[2:] ('fifibcd'), could I simply take
my preshaped glyphs after the cluster at or above (ceiling) i = 2 and only
reshape the segment A[2:6]?
So I would reuse the glyphs
[fi 4] [b 6] [c 7] [d 8]
and reshape the segment A[2:6] = 'fifi' to get
[fi 2] [fi 4]
and add them together (dropping the last glyph in the reshaped segment) to
get
[fi 2] [fi 4] [b 6] [c 7] [d 8]
?
Would this be the same result as reshaping the entire segment A[2:]? Would
this still work for RTL text, or a substring that’s on the left-hand side
of the parent string like A[:5] = 'affif'?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20160630/cc419e0a/attachment.html>
More information about the HarfBuzz
mailing list