Mercurial > emacs
comparison src/xdisp.c @ 103380:c74889986273
(x_get_glyph_overhangs): Fix calculation of right
overhang for the static composition case.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 11 Jun 2009 02:34:34 +0000 |
parents | c4bcff5f6860 |
children | 3b5cf06e7df9 |
comparison
equal
deleted
inserted
replaced
103379:c4bcff5f6860 | 103380:c74889986273 |
---|---|
19913 { | 19913 { |
19914 struct composition *cmp = composition_table[glyph->u.cmp.id]; | 19914 struct composition *cmp = composition_table[glyph->u.cmp.id]; |
19915 | 19915 |
19916 if (cmp->rbearing > cmp->pixel_width) | 19916 if (cmp->rbearing > cmp->pixel_width) |
19917 *right = cmp->rbearing - cmp->pixel_width; | 19917 *right = cmp->rbearing - cmp->pixel_width; |
19918 if (cmp->lbearing < 0); | 19918 if (cmp->lbearing < 0) |
19919 *left = - cmp->lbearing; | 19919 *left = - cmp->lbearing; |
19920 } | 19920 } |
19921 else | 19921 else |
19922 { | 19922 { |
19923 Lisp_Object gstring = composition_gstring_from_id (glyph->u.cmp.id); | 19923 Lisp_Object gstring = composition_gstring_from_id (glyph->u.cmp.id); |
19924 struct font_metrics metrics; | 19924 struct font_metrics metrics; |