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.
|
@ -49,8 +49,12 @@ var makeSymbol = function(value, fontFamily, mode, options, classes) {
|
||||||
|
|
||||||
var symbolNode;
|
var symbolNode;
|
||||||
if (metrics) {
|
if (metrics) {
|
||||||
|
var italic = metrics.italic;
|
||||||
|
if (mode === "text") {
|
||||||
|
italic = 0;
|
||||||
|
}
|
||||||
symbolNode = new domTree.symbolNode(
|
symbolNode = new domTree.symbolNode(
|
||||||
value, metrics.height, metrics.depth, metrics.italic, metrics.skew,
|
value, metrics.height, metrics.depth, italic, metrics.skew,
|
||||||
classes);
|
classes);
|
||||||
} else {
|
} else {
|
||||||
// TODO(emily): Figure out a good way to only print this in development
|
// TODO(emily): Figure out a good way to only print this in development
|
||||||
|
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |