Skip to content

Commit 81c6dad

Browse files
authored
Merge pull request #91 from Kolaru/accents
Correct height of accents
2 parents ae2be8a + f98d8d3 commit 81c6dad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/engine/layout.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ function tex_layout(expr, state)
3131
elseif head == :combining_accent
3232
accent, core = tex_layout.(args, state)
3333

34+
# Same space between the top of core and the accent than
35+
# between the top of a 'x' and the accent
3436
y = topinkbound(core) - xheight(font_family)
3537

3638
if core.slanted
@@ -44,7 +46,7 @@ function tex_layout(expr, state)
4446
[core, accent],
4547
Point2f[
4648
(0, 0),
47-
(x + hmid(core) - hmid(accent), 0)
49+
(x + hmid(core) - hmid(accent), y)
4850
],
4951
[1, 1]
5052
)

0 commit comments

Comments
 (0)