diff options
Diffstat (limited to 'src/hbfont.c')
| -rw-r--r-- | src/hbfont.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/hbfont.c b/src/hbfont.c index 4b3f64ef504..82b115e6868 100644 --- a/src/hbfont.c +++ b/src/hbfont.c | |||
| @@ -594,13 +594,10 @@ hbfont_shape (Lisp_Object lgstring, Lisp_Object direction) | |||
| 594 | yoff = - lround (pos[i].y_offset * position_unit); | 594 | yoff = - lround (pos[i].y_offset * position_unit); |
| 595 | wadjust = lround (pos[i].x_advance * position_unit); | 595 | wadjust = lround (pos[i].x_advance * position_unit); |
| 596 | if (xoff || yoff || wadjust != metrics.width) | 596 | if (xoff || yoff || wadjust != metrics.width) |
| 597 | { | 597 | LGLYPH_SET_ADJUSTMENT (lglyph, CALLN (Fvector, |
| 598 | Lisp_Object vec = make_uninit_vector (3); | 598 | make_fixnum (xoff), |
| 599 | ASET (vec, 0, make_fixnum (xoff)); | 599 | make_fixnum (yoff), |
| 600 | ASET (vec, 1, make_fixnum (yoff)); | 600 | make_fixnum (wadjust))); |
| 601 | ASET (vec, 2, make_fixnum (wadjust)); | ||
| 602 | LGLYPH_SET_ADJUSTMENT (lglyph, vec); | ||
| 603 | } | ||
| 604 | } | 601 | } |
| 605 | 602 | ||
| 606 | return make_fixnum (glyph_len); | 603 | return make_fixnum (glyph_len); |