mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 05:29:23 +00:00
fixed regression: line spacing was odd when small line followed large line
This commit is contained in:
1 parent
70aaa29016
commit
13fad1ca47
1 file changed
+4
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user