Italic correction should not be applied to characters in text mode.

This requires changes to screenshotter tests that assumed italic
correction was applied in text mode.
This commit is contained in:
Eddie Kohler
2016-11-28 09:59:28 -05:00
parent 4297eb1276
commit b88bc7723d
11 changed files with 5 additions and 1 deletions

View File

@@ -49,8 +49,12 @@ var makeSymbol = function(value, fontFamily, mode, options, classes) {
var symbolNode;
if (metrics) {
var italic = metrics.italic;
if (mode === "text") {
italic = 0;
}
symbolNode = new domTree.symbolNode(
value, metrics.height, metrics.depth, metrics.italic, metrics.skew,
value, metrics.height, metrics.depth, italic, metrics.skew,
classes);
} else {
// TODO(emily): Figure out a good way to only print this in development