mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(get_composition_id): Handle xoff and yoff in a
composition rule.
This commit is contained in:
parent
28d0edc75d
commit
464f8566d3
1 changed files with 2 additions and 2 deletions
|
|
@ -336,7 +336,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string)
|
|||
|
||||
for (i = 1; i < glyph_len; i += 2)
|
||||
{
|
||||
int rule, gref, nref;
|
||||
int rule, gref, nref, xoff, yoff;
|
||||
int this_width;
|
||||
float this_left;
|
||||
|
||||
|
|
@ -358,7 +358,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string)
|
|||
| |
|
||||
6---7---8 -- descent
|
||||
*/
|
||||
COMPOSITION_DECODE_RULE (rule, gref, nref);
|
||||
COMPOSITION_DECODE_RULE (rule, gref, nref, xoff, yoff);
|
||||
this_left = (leftmost
|
||||
+ (gref % 3) * (rightmost - leftmost) / 2.0
|
||||
- (nref % 3) * this_width / 2.0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue