aboutsummaryrefslogtreecommitdiffstats
path: root/src/hbfont.c
diff options
context:
space:
mode:
authorVibhav Pant2020-08-21 14:04:35 +0530
committerVibhav Pant2020-08-21 14:04:35 +0530
commitf0f8d7b82492e741950c363a03b886965c91b1b0 (patch)
tree19b716830b1ebabc0d7d75949c4e6800c0f104ad /src/hbfont.c
parent9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff)
parentc818c29771d3cb51875643b2f6c894073e429dd2 (diff)
downloademacs-feature/native-comp-macos-fixes.tar.gz
emacs-feature/native-comp-macos-fixes.zip
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'src/hbfont.c')
-rw-r--r--src/hbfont.c11
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);