mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 12:18:39 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user