projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71bdb4c
)
(layout_glyphs): Don't combine a zero width glyph with
author
handa
<handa>
Thu, 29 Jul 2004 07:08:02 +0000
(07:08 +0000)
committer
handa
<handa>
Thu, 29 Jul 2004 07:08:02 +0000
(07:08 +0000)
the previous one if the zero width glyph has left or right
padding.
src/draw.c
patch
|
blob
|
history
diff --git
a/src/draw.c
b/src/draw.c
index
25e2867
..
ea89008
100644
(file)
--- a/
src/draw.c
+++ b/
src/draw.c
@@
-539,7
+539,8
@@
layout_glyphs (MFrame *frame, MGlyphString *gstring, int from, int to)
if (g == last_g || ! g->combining_code || g->otf_encoded)
{
/* No combining. */
- if (base->width == 0 && GLYPH_INDEX (base) > from)
+ if (base->width == 0 && ! base->left_padding && ! base->right_padding
+ && GLYPH_INDEX (base) > from)
{
MGlyph *prev = base - 1;