fixed regression: line spacing was odd when small line followed large line

This commit is contained in:
daboe01 committed 2016-09-15 20:25:28 +02:00
1 parent 70aaa29016
commit 13fad1ca47
1 file changed
+4 -4
+4 -4
View File
@@ -300,9 +300,6 @@ var CPSystemTypesetterFactory,
currentFontLineHeight = ascent - descent + leading;
if (currentFontLineHeight > _lineHeight)
_lineHeight = currentFontLineHeight;
if (ascent > _lineBase)
_lineBase = ascent;
@@ -315,6 +312,9 @@ var CPSystemTypesetterFactory,
}
if (currentFontLineHeight > _lineHeight)
_lineHeight = currentFontLineHeight;
lineRange.length++;
measuringRange.length++;
@@ -407,7 +407,7 @@ var CPSystemTypesetterFactory,
advancements = [];
currentAnchor = 0;
prevRangeWidth = 0;
_lineHeight = currentFontLineHeight;
_lineHeight = 0;
_lineBase = ascent;
lineRange = CPMakeRange(glyphIndex + 1, 0);
measuringRange = CPMakeRange(glyphIndex + 1, 0);