Make accents zero width (#1033)

* Make accents zero width

Make the width of an accented character equal to the width of the character,
by making accents zero width.  In particular, fixes #1028 (`\ddot\imath`).

This involved reworking all of the accent offset machinery, in particular
skew and accent-hungarian.  A bit cleaner now.

Also added support for the new width character metrics in symbolNode.

* Update AccentsText test

* Fix comment
This commit is contained in:
Erik Demaine
2017-12-25 10:48:32 -08:00
committed by Kevin Barabash
parent d19ac4029a
commit d6791b7961
18 changed files with 27 additions and 21 deletions

View File

@@ -554,13 +554,9 @@
text-align: center;
}
.accent-body > span {
.accent-body {
width: 0;
}
.accent-body.accent-hungarian > span {
position: relative;
left: 0.250em; // width of space
position: relative; // so that 'left' can shift the accent
}
}