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:
0dc3a4e
)
[util] Unbreak --show-text / --show-unicode
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 18 Apr 2013 03:49:54 +0000
(23:49 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 18 Apr 2013 03:49:54 +0000
(23:49 -0400)
util/shape-consumer.hh
patch
|
blob
|
history
diff --git
a/util/shape-consumer.hh
b/util/shape-consumer.hh
index
2b86a3c
..
8fd7ec3
100644
(file)
--- a/
util/shape-consumer.hh
+++ b/
util/shape-consumer.hh
@@
-51,11
+51,11
@@
struct shape_consumer_t
{
output.new_line ();
- output.consume_text (buffer, text, text_len, shaper.utf8_clusters);
-
for (unsigned int n = shaper.num_iterations; n; n--)
{
shaper.populate_buffer (buffer, text, text_len, text_before, text_after);
+ if (n == 1)
+ output.consume_text (buffer, text, text_len, shaper.utf8_clusters);
if (!shaper.shape (font, buffer)) {
failed = true;
hb_buffer_set_length (buffer, 0);