aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2004-01-23 08:44:57 +0000
committerKenichi Handa2004-01-23 08:44:57 +0000
commit980a8c09cc6f2c1cc660057ceecba3451461032d (patch)
tree84f85cd3cfbd54dac3ec015c28fef5717b5021f3 /src
parent9c87e5c456599a0a1ed69574b884eb288000b0a9 (diff)
downloademacs-980a8c09cc6f2c1cc660057ceecba3451461032d.tar.gz
emacs-980a8c09cc6f2c1cc660057ceecba3451461032d.zip
(x_compute_glyph_string_overhangs): Handle also a
composition glyph.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 7d3ef24de15..9bba701b8d9 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1126,8 +1126,7 @@ x_set_glyph_string_clipping (s)
1126 1126
1127 1127
1128/* RIF: 1128/* RIF:
1129 Compute left and right overhang of glyph string S. If S is a glyph 1129 Compute left and right overhang of glyph string S. */
1130 string for a composition, assume overhangs don't exist. */
1131 1130
1132static void 1131static void
1133x_compute_glyph_string_overhangs (s) 1132x_compute_glyph_string_overhangs (s)
@@ -1143,6 +1142,11 @@ x_compute_glyph_string_overhangs (s)
1143 s->right_overhang = cs.rbearing > cs.width ? cs.rbearing - cs.width : 0; 1142 s->right_overhang = cs.rbearing > cs.width ? cs.rbearing - cs.width : 0;
1144 s->left_overhang = cs.lbearing < 0 ? -cs.lbearing : 0; 1143 s->left_overhang = cs.lbearing < 0 ? -cs.lbearing : 0;
1145 } 1144 }
1145 else if (s->cmp)
1146 {
1147 s->right_overhang = s->cmp->rbearing - s->cmp->pixel_width;
1148 s->left_overhang = - s->cmp->lbearing;
1149 }
1146} 1150}
1147 1151
1148 1152