From 3e3fef4440b5d982144bdb4b13a3d784ba686233 Mon Sep 17 00:00:00 2001 From: Jaro Date: Sun, 25 Jun 2023 17:53:23 +0200 Subject: [PATCH] Add content rect to Fragment. --- .../loremIpsum20em.golden | 11 +++++++ .../spannedArabicFiller20em.golden | 14 ++++++++ .../loremIpsum20em.golden | 11 +++++++ .../paragraphLayout/arabicFiller20em.golden | 4 +++ .../arabicHelloParagraphUltraNarrow.golden | 13 ++++++++ .golden/paragraphLayout/czechHello.golden | 1 + .../czechHelloParagraphNarrow.golden | 5 +++ .../czechHelloParagraphUltraNarrow.golden | 11 +++++++ .golden/paragraphLayout/devanagari.golden | 1 + .../paragraphLayout/devanagariAccent.golden | 1 + .../devanagariPrefixedAccent.golden | 1 + .golden/paragraphLayout/hardBreaksLTR.golden | 9 ++++++ .golden/paragraphLayout/hardBreaksRTL.golden | 9 ++++++ .golden/paragraphLayout/ligature.golden | 1 + .../ligatureParagraphBreak1.golden | 3 ++ .../ligatureParagraphBreak2.golden | 3 ++ .../paragraphLayout/lineHeightLarger.golden | 1 + .../paragraphLayout/lineHeightNormal.golden | 1 + .../paragraphLayout/lineHeightSmaller.golden | 1 + .../paragraphLayout/loremIpsum100em.golden | 3 ++ .golden/paragraphLayout/loremIpsum20em.golden | 11 +++++++ .golden/paragraphLayout/manySpaces.golden | 4 +++ .../paragraphLayout/mixedLanguageLTR.golden | 2 ++ .../paragraphLayout/mixedScriptWords.golden | 23 +++++++++++++ .../spannedArabicFiller20em.golden | 14 ++++++++ .../spannedLoremIpsum20em.golden | 32 +++++++++++++++++++ .../richParagraphLayout/emptyBoxMiddle.golden | 3 ++ .../hardBoxBreakLTR.golden | 4 +++ .../hardBoxBreakRTL.golden | 4 +++ .../richParagraphLayout/loremIpsum20em.golden | 11 +++++++ .../loremIpsum20emCentre.golden | 11 +++++++ .../loremIpsum20emRight.golden | 11 +++++++ .../mixedDirectionComplexLTR.golden | 7 ++++ .../mixedDirectionComplexRTL.golden | 7 ++++ .../mixedDirectionSimpleLTR.golden | 3 ++ .../mixedDirectionSimpleRTL.golden | 3 ++ .../mixedLineHeight.golden | 19 +++++++++++ .../richParagraphLayout/mixedScript.golden | 9 ++++++ .../mixedScriptWrap.golden | 11 +++++++ .golden/richParagraphLayout/mixedSizes.golden | 5 +++ .../richParagraphLayout/nestedBoxes.golden | 3 ++ .../neutralDirectionLTR.golden | 1 + .../neutralDirectionRTL.golden | 1 + .../newline1Paragraph.golden | 1 + .../newline1TextParagraph.golden | 2 ++ .../newline2Paragraph.golden | 2 ++ .../newline2TextParagraph.golden | 3 ++ .../spaceBoxCollapsed.golden | 8 +++++ .../richParagraphLayout/spaceBoxMiddle.golden | 3 ++ .../spaceBoxPreserved.golden | 9 ++++++ CHANGELOG.md | 3 ++ lib/Data/Text/ParagraphLayout/Rich.hs | 1 + .../Text/ParagraphLayout/Internal/Fragment.hs | 14 ++++++-- .../Text/ParagraphLayout/Internal/Layout.hs | 12 ++++++- test/Data/Text/ParagraphLayout/PrettyShow.hs | 6 +++- 55 files changed, 362 insertions(+), 5 deletions(-) diff --git a/.golden/paginatedParagraphLayout/loremIpsum20em.golden b/.golden/paginatedParagraphLayout/loremIpsum20em.golden index 6f95cd4..12632e6 100644 --- a/.golden/paginatedParagraphLayout/loremIpsum20em.golden +++ b/.golden/paginatedParagraphLayout/loremIpsum20em.golden @@ -8,6 +8,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -58,6 +59,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -114,6 +116,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 19791, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 19791, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -169,6 +172,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17562, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17562, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -217,6 +221,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 18769, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 18769, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -272,6 +277,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 19226, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 19226, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -323,6 +329,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 17973, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 17973, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -375,6 +382,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 18971, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 18971, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -437,6 +445,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 17239, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 17239, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -485,6 +494,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 19199, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 19199, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -538,6 +548,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 12076, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 12076, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paginatedParagraphLayout/spannedArabicFiller20em.golden b/.golden/paginatedParagraphLayout/spannedArabicFiller20em.golden index c91291f..8586e17 100644 --- a/.golden/paginatedParagraphLayout/spannedArabicFiller20em.golden +++ b/.golden/paginatedParagraphLayout/spannedArabicFiller20em.golden @@ -8,6 +8,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 12652, y_origin = 0, x_size = 7198, y_size = -1500} , fragmentRect = Rect {x_origin = 12652, y_origin = 0, x_size = 7198, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -40,6 +41,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 7060, y_origin = 0, x_size = 5592, y_size = -1500} , fragmentRect = Rect {x_origin = 7060, y_origin = 0, x_size = 5592, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -65,6 +67,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 7060, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 7060, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -98,6 +101,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 14850, y_origin = -1500, x_size = 4045, y_size = -1500} , fragmentRect = Rect {x_origin = 14850, y_origin = -1500, x_size = 4045, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -122,6 +126,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 9168, y_origin = -1500, x_size = 5682, y_size = -1500} , fragmentRect = Rect {x_origin = 9168, y_origin = -1500, x_size = 5682, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -152,6 +157,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 3213, y_origin = -1500, x_size = 5955, y_size = -1500} , fragmentRect = Rect {x_origin = 3213, y_origin = -1500, x_size = 5955, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -182,6 +188,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 3213, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 3213, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -242,6 +249,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 14300, y_origin = 0, x_size = 4862, y_size = -1500} , fragmentRect = Rect {x_origin = 14300, y_origin = 0, x_size = 4862, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -269,6 +277,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 10225, y_origin = 0, x_size = 4075, y_size = -1500} , fragmentRect = Rect {x_origin = 10225, y_origin = 0, x_size = 4075, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -292,6 +301,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 3898, y_origin = 0, x_size = 6327, y_size = -1500} , fragmentRect = Rect {x_origin = 3898, y_origin = 0, x_size = 6327, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -322,6 +332,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3898, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3898, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -341,6 +352,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 12238, y_origin = -1500, x_size = 2357, y_size = -1500} , fragmentRect = Rect {x_origin = 12238, y_origin = -1500, x_size = 2357, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -361,6 +373,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 5880, y_origin = -1500, x_size = 6358, y_size = -1500} , fragmentRect = Rect {x_origin = 5880, y_origin = -1500, x_size = 6358, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -392,6 +405,7 @@ , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 5880, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 5880, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/paginatedRichParagraphLayout/loremIpsum20em.golden b/.golden/paginatedRichParagraphLayout/loremIpsum20em.golden index 862469f..7621cca 100644 --- a/.golden/paginatedRichParagraphLayout/loremIpsum20em.golden +++ b/.golden/paginatedRichParagraphLayout/loremIpsum20em.golden @@ -6,6 +6,7 @@ , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -55,6 +56,7 @@ , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -109,6 +111,7 @@ , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 19791, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 19791, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -163,6 +166,7 @@ , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17562, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17562, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -210,6 +214,7 @@ , fragmentLine = 5 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 18769, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 18769, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -264,6 +269,7 @@ , fragmentLine = 6 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 19226, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 19226, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -314,6 +320,7 @@ , fragmentLine = 7 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 17973, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 17973, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -365,6 +372,7 @@ , fragmentLine = 8 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 18971, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 18971, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -425,6 +433,7 @@ , fragmentLine = 9 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 17239, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 17239, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -472,6 +481,7 @@ , fragmentLine = 10 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 19199, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 19199, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -524,6 +534,7 @@ , fragmentLine = 11 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 12076, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 12076, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/arabicFiller20em.golden b/.golden/paragraphLayout/arabicFiller20em.golden index a90bdf6..680739f 100644 --- a/.golden/paragraphLayout/arabicFiller20em.golden +++ b/.golden/paragraphLayout/arabicFiller20em.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 19850, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 19850, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -67,6 +68,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 18895, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 18895, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -129,6 +131,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3000, x_size = 19162, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -3000, x_size = 19162, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -186,6 +189,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4500, x_size = 14595, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -4500, x_size = 14595, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/arabicHelloParagraphUltraNarrow.golden b/.golden/paragraphLayout/arabicHelloParagraphUltraNarrow.golden index 7b48de5..bb723af 100644 --- a/.golden/paragraphLayout/arabicHelloParagraphUltraNarrow.golden +++ b/.golden/paragraphLayout/arabicHelloParagraphUltraNarrow.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -124, y_origin = 0, x_size = 224, y_size = -1500} , fragmentRect = Rect {x_origin = -124, y_origin = 0, x_size = 224, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -20,6 +21,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -169, y_origin = -1500, x_size = 269, y_size = -1500} , fragmentRect = Rect {x_origin = -169, y_origin = -1500, x_size = 269, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -32,6 +34,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -727, y_origin = -3000, x_size = 827, y_size = -1500} , fragmentRect = Rect {x_origin = -727, y_origin = -3000, x_size = 827, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -45,6 +48,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -214, y_origin = -4500, x_size = 314, y_size = -1500} , fragmentRect = Rect {x_origin = -214, y_origin = -4500, x_size = 314, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -58,6 +62,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -170, y_origin = -6000, x_size = 270, y_size = -1500} , fragmentRect = Rect {x_origin = -170, y_origin = -6000, x_size = 270, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -70,6 +75,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -455, y_origin = -7500, x_size = 555, y_size = -1500} , fragmentRect = Rect {x_origin = -455, y_origin = -7500, x_size = 555, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -83,6 +89,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -379, y_origin = -9000, x_size = 479, y_size = -1500} , fragmentRect = Rect {x_origin = -379, y_origin = -9000, x_size = 479, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -96,6 +103,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -214, y_origin = -10500, x_size = 314, y_size = -1500} , fragmentRect = Rect {x_origin = -214, y_origin = -10500, x_size = 314, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -109,6 +117,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -210, y_origin = -12000, x_size = 310, y_size = -1500} , fragmentRect = Rect {x_origin = -210, y_origin = -12000, x_size = 310, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -122,6 +131,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -352, y_origin = -13500, x_size = 452, y_size = -1500} , fragmentRect = Rect {x_origin = -352, y_origin = -13500, x_size = 452, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -135,6 +145,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -424, y_origin = -15000, x_size = 524, y_size = -1500} , fragmentRect = Rect {x_origin = -424, y_origin = -15000, x_size = 524, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -148,6 +159,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = -170, y_origin = -16500, x_size = 270, y_size = -1500} , fragmentRect = Rect {x_origin = -170, y_origin = -16500, x_size = 270, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -160,6 +172,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = -184, y_origin = -18000, x_size = 284, y_size = -1500} , fragmentRect = Rect {x_origin = -184, y_origin = -18000, x_size = 284, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/czechHello.golden b/.golden/paragraphLayout/czechHello.golden index 38e20a4..5c7ac0d 100644 --- a/.golden/paragraphLayout/czechHello.golden +++ b/.golden/paragraphLayout/czechHello.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 5274, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 5274, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/czechHelloParagraphNarrow.golden b/.golden/paragraphLayout/czechHelloParagraphNarrow.golden index 12d50f8..0d752a4 100644 --- a/.golden/paragraphLayout/czechHelloParagraphNarrow.golden +++ b/.golden/paragraphLayout/czechHelloParagraphNarrow.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1234, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1234, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -21,6 +22,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 1089, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 1089, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -35,6 +37,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 948, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 948, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -48,6 +51,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 961, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 961, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -61,6 +65,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 835, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 835, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/czechHelloParagraphUltraNarrow.golden b/.golden/paragraphLayout/czechHelloParagraphUltraNarrow.golden index 0cca3b0..14fa7b8 100644 --- a/.golden/paragraphLayout/czechHelloParagraphUltraNarrow.golden +++ b/.golden/paragraphLayout/czechHelloParagraphUltraNarrow.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 663, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 663, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -20,6 +21,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 571, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 571, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -32,6 +34,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 590, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 590, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -44,6 +47,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 253, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 253, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -56,6 +60,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 246, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 246, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -68,6 +73,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 446, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 446, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -80,6 +86,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 502, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 502, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -92,6 +99,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 559, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 559, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -104,6 +112,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 402, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 402, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -116,6 +125,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 559, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 559, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -128,6 +138,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 276, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 276, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/devanagari.golden b/.golden/paragraphLayout/devanagari.golden index 5606f66..1cffb72 100644 --- a/.golden/paragraphLayout/devanagari.golden +++ b/.golden/paragraphLayout/devanagari.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 8640, y_size = -1630} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 8640, y_size = -1630} , fragmentPen = (0, -1171) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/devanagariAccent.golden b/.golden/paragraphLayout/devanagariAccent.golden index 27e7225..f0ea0ac 100644 --- a/.golden/paragraphLayout/devanagariAccent.golden +++ b/.golden/paragraphLayout/devanagariAccent.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 645, y_size = -1630} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 645, y_size = -1630} , fragmentPen = (0, -1171) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/devanagariPrefixedAccent.golden b/.golden/paragraphLayout/devanagariPrefixedAccent.golden index 41fbc27..80ed360 100644 --- a/.golden/paragraphLayout/devanagariPrefixedAccent.golden +++ b/.golden/paragraphLayout/devanagariPrefixedAccent.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 0, y_size = -1630} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 0, y_size = -1630} , fragmentPen = (0, -1171) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/hardBreaksLTR.golden b/.golden/paragraphLayout/hardBreaksLTR.golden index c0edcee..9d75554 100644 --- a/.golden/paragraphLayout/hardBreaksLTR.golden +++ b/.golden/paragraphLayout/hardBreaksLTR.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1563, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1563, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -25,6 +26,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 3357, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 3357, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -49,6 +51,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 1563, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 1563, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -66,6 +69,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 4305, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 4305, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -82,6 +86,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 861, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 861, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -94,6 +99,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 1563, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 1563, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -111,6 +117,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 0, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -122,6 +129,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 3675, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 3675, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -138,6 +146,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 1722, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 1722, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/hardBreaksRTL.golden b/.golden/paragraphLayout/hardBreaksRTL.golden index 8efde42..9250cc2 100644 --- a/.golden/paragraphLayout/hardBreaksRTL.golden +++ b/.golden/paragraphLayout/hardBreaksRTL.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2808, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2808, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -25,6 +26,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 5852, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 5852, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -49,6 +51,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3000, x_size = 2808, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -3000, x_size = 2808, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -66,6 +69,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4500, x_size = 4884, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -4500, x_size = 4884, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -83,6 +87,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6000, x_size = 1211, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -6000, x_size = 1211, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -95,6 +100,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7500, x_size = 2808, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -7500, x_size = 2808, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -112,6 +118,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -9000, x_size = 0, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -9000, x_size = 0, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -123,6 +130,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -10500, x_size = 4156, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -10500, x_size = 4156, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -139,6 +147,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -12000, x_size = 1960, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -12000, x_size = 1960, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/ligature.golden b/.golden/paragraphLayout/ligature.golden index 4d4e5c4..3559319 100644 --- a/.golden/paragraphLayout/ligature.golden +++ b/.golden/paragraphLayout/ligature.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 4672, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 4672, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/ligatureParagraphBreak1.golden b/.golden/paragraphLayout/ligatureParagraphBreak1.golden index 49733eb..9d12ae0 100644 --- a/.golden/paragraphLayout/ligatureParagraphBreak1.golden +++ b/.golden/paragraphLayout/ligatureParagraphBreak1.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2162, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2162, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -23,6 +24,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 2104, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 2104, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -39,6 +41,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 402, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 402, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/ligatureParagraphBreak2.golden b/.golden/paragraphLayout/ligatureParagraphBreak2.golden index 7b32c0b..c892e92 100644 --- a/.golden/paragraphLayout/ligatureParagraphBreak2.golden +++ b/.golden/paragraphLayout/ligatureParagraphBreak2.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1772, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1772, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -23,6 +24,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 1361, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 1361, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -37,6 +39,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 1535, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 1535, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/lineHeightLarger.golden b/.golden/paragraphLayout/lineHeightLarger.golden index c9a7c93..d39fdd2 100644 --- a/.golden/paragraphLayout/lineHeightLarger.golden +++ b/.golden/paragraphLayout/lineHeightLarger.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -240, x_size = 522, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 522, y_size = -1600} , fragmentPen = (0, -1172) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/lineHeightNormal.golden b/.golden/paragraphLayout/lineHeightNormal.golden index 94ab5aa..f2667c6 100644 --- a/.golden/paragraphLayout/lineHeightNormal.golden +++ b/.golden/paragraphLayout/lineHeightNormal.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 522, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 522, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/lineHeightSmaller.golden b/.golden/paragraphLayout/lineHeightSmaller.golden index d0880c1..460822d 100644 --- a/.golden/paragraphLayout/lineHeightSmaller.golden +++ b/.golden/paragraphLayout/lineHeightSmaller.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 261, x_size = 522, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 522, y_size = -599} , fragmentPen = (0, -671) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/loremIpsum100em.golden b/.golden/paragraphLayout/loremIpsum100em.golden index dc7a62c..1dae370 100644 --- a/.golden/paragraphLayout/loremIpsum100em.golden +++ b/.golden/paragraphLayout/loremIpsum100em.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 95412, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 95412, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -231,6 +232,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 98954, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 98954, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -463,6 +465,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 4041, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 4041, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/loremIpsum20em.golden b/.golden/paragraphLayout/loremIpsum20em.golden index e28361a..2972228 100644 --- a/.golden/paragraphLayout/loremIpsum20em.golden +++ b/.golden/paragraphLayout/loremIpsum20em.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -58,6 +59,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -107,6 +109,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -162,6 +165,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -210,6 +214,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -265,6 +270,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -316,6 +322,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -368,6 +375,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -423,6 +431,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -471,6 +480,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -524,6 +534,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/manySpaces.golden b/.golden/paragraphLayout/manySpaces.golden index 99295e9..2921d09 100644 --- a/.golden/paragraphLayout/manySpaces.golden +++ b/.golden/paragraphLayout/manySpaces.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3132, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3132, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -25,6 +26,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 3132, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 3132, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -42,6 +44,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 3132, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 3132, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -59,6 +62,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 3132, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 3132, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/mixedLanguageLTR.golden b/.golden/paragraphLayout/mixedLanguageLTR.golden index e204fea..ffc41aa 100644 --- a/.golden/paragraphLayout/mixedLanguageLTR.golden +++ b/.golden/paragraphLayout/mixedLanguageLTR.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 4837, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 4837, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -33,6 +34,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 4837, y_origin = 0, x_size = 1276, y_size = -1121} , fragmentRect = Rect {x_origin = 4837, y_origin = 0, x_size = 1276, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/mixedScriptWords.golden b/.golden/paragraphLayout/mixedScriptWords.golden index ebe4f67..50ad02a 100644 --- a/.golden/paragraphLayout/mixedScriptWords.golden +++ b/.golden/paragraphLayout/mixedScriptWords.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -22,6 +23,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 777, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 777, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -36,6 +38,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3112, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 3112, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -50,6 +53,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -64,6 +68,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 777, y_origin = -1121, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 777, y_origin = -1121, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -78,6 +83,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3112, y_origin = -1121, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 3112, y_origin = -1121, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -92,6 +98,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -106,6 +113,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 2335, y_origin = -2242, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 2335, y_origin = -2242, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -120,6 +128,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3112, y_origin = -2242, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 3112, y_origin = -2242, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -134,6 +143,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -148,6 +158,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 2335, y_origin = -3363, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 2335, y_origin = -3363, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -162,6 +173,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3112, y_origin = -3363, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 3112, y_origin = -3363, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -176,6 +188,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 253, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 253, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -188,6 +201,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 253, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 253, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -200,6 +214,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 1016, y_origin = -4484, x_size = 737, y_size = -1121} , fragmentRect = Rect {x_origin = 1016, y_origin = -4484, x_size = 737, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -214,6 +229,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 1753, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 1753, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -226,6 +242,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 2516, y_origin = -4484, x_size = 484, y_size = -1121} , fragmentRect = Rect {x_origin = 2516, y_origin = -4484, x_size = 484, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -239,6 +256,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3000, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 3000, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -251,6 +269,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3763, y_origin = -4484, x_size = 253, y_size = -1121} , fragmentRect = Rect {x_origin = 3763, y_origin = -4484, x_size = 253, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -263,6 +282,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 4016, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 4016, y_origin = -4484, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -275,6 +295,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -287,6 +308,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 763, y_origin = -5605, x_size = 253, y_size = -1121} , fragmentRect = Rect {x_origin = 763, y_origin = -5605, x_size = 253, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -299,6 +321,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 1016, y_origin = -5605, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 1016, y_origin = -5605, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/spannedArabicFiller20em.golden b/.golden/paragraphLayout/spannedArabicFiller20em.golden index 51fbfe8..8fe7704 100644 --- a/.golden/paragraphLayout/spannedArabicFiller20em.golden +++ b/.golden/paragraphLayout/spannedArabicFiller20em.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 12652, y_origin = 0, x_size = 7198, y_size = -1500} , fragmentRect = Rect {x_origin = 12652, y_origin = 0, x_size = 7198, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -40,6 +41,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 7060, y_origin = 0, x_size = 5592, y_size = -1500} , fragmentRect = Rect {x_origin = 7060, y_origin = 0, x_size = 5592, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -65,6 +67,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 7060, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 7060, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -98,6 +101,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 14850, y_origin = -1500, x_size = 4045, y_size = -1500} , fragmentRect = Rect {x_origin = 14850, y_origin = -1500, x_size = 4045, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -122,6 +126,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 9168, y_origin = -1500, x_size = 5682, y_size = -1500} , fragmentRect = Rect {x_origin = 9168, y_origin = -1500, x_size = 5682, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -152,6 +157,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 3213, y_origin = -1500, x_size = 5955, y_size = -1500} , fragmentRect = Rect {x_origin = 3213, y_origin = -1500, x_size = 5955, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -182,6 +188,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 3213, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -1500, x_size = 3213, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -202,6 +209,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 14300, y_origin = -3000, x_size = 4862, y_size = -1500} , fragmentRect = Rect {x_origin = 14300, y_origin = -3000, x_size = 4862, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -229,6 +237,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 10225, y_origin = -3000, x_size = 4075, y_size = -1500} , fragmentRect = Rect {x_origin = 10225, y_origin = -3000, x_size = 4075, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -252,6 +261,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 3898, y_origin = -3000, x_size = 6327, y_size = -1500} , fragmentRect = Rect {x_origin = 3898, y_origin = -3000, x_size = 6327, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -282,6 +292,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3000, x_size = 3898, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -3000, x_size = 3898, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -301,6 +312,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 12238, y_origin = -4500, x_size = 2357, y_size = -1500} , fragmentRect = Rect {x_origin = 12238, y_origin = -4500, x_size = 2357, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -321,6 +333,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 5880, y_origin = -4500, x_size = 6358, y_size = -1500} , fragmentRect = Rect {x_origin = 5880, y_origin = -4500, x_size = 6358, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -352,6 +365,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4500, x_size = 5880, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = -4500, x_size = 5880, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/paragraphLayout/spannedLoremIpsum20em.golden b/.golden/paragraphLayout/spannedLoremIpsum20em.golden index 37e7acc..253ebba 100644 --- a/.golden/paragraphLayout/spannedLoremIpsum20em.golden +++ b/.golden/paragraphLayout/spannedLoremIpsum20em.golden @@ -8,6 +8,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 8747, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 8747, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -40,6 +41,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 8747, y_origin = 0, x_size = 9563, y_size = -1121} , fragmentRect = Rect {x_origin = 8747, y_origin = 0, x_size = 9563, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -75,6 +77,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 18310, y_origin = 0, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 18310, y_origin = 0, x_size = 0, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -86,6 +89,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 8553, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 8553, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -121,6 +125,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 8553, y_origin = -1121, x_size = 8890, y_size = -1121} , fragmentRect = Rect {x_origin = 8553, y_origin = -1121, x_size = 8890, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -152,6 +157,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 17443, y_origin = -1121, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 17443, y_origin = -1121, x_size = 0, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -163,6 +169,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 9114, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 9114, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -198,6 +205,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 9114, y_origin = -2242, x_size = 7467, y_size = -1121} , fragmentRect = Rect {x_origin = 9114, y_origin = -2242, x_size = 7467, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -227,6 +235,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 16581, y_origin = -2242, x_size = 3210, y_size = -1121} , fragmentRect = Rect {x_origin = 16581, y_origin = -2242, x_size = 3210, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -246,6 +255,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 3799, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 3799, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -268,6 +278,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 3799, y_origin = -3363, x_size = 7878, y_size = -1121} , fragmentRect = Rect {x_origin = 3799, y_origin = -3363, x_size = 7878, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -298,6 +309,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 11677, y_origin = -3363, x_size = 5885, y_size = -1121} , fragmentRect = Rect {x_origin = 11677, y_origin = -3363, x_size = 5885, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -322,6 +334,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 5686, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 5686, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -349,6 +362,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 5686, y_origin = -4484, x_size = 8592, y_size = -1121} , fragmentRect = Rect {x_origin = 5686, y_origin = -4484, x_size = 8592, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -383,6 +397,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 14278, y_origin = -4484, x_size = 4491, y_size = -1121} , fragmentRect = Rect {x_origin = 14278, y_origin = -4484, x_size = 4491, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -405,6 +420,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 1301, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 1301, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -422,6 +438,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 1301, y_origin = -5605, x_size = 11041, y_size = -1121} , fragmentRect = Rect {x_origin = 1301, y_origin = -5605, x_size = 11041, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -457,6 +474,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 12342, y_origin = -5605, x_size = 6884, y_size = -1121} , fragmentRect = Rect {x_origin = 12342, y_origin = -5605, x_size = 6884, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -487,6 +505,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 10089, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 10089, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -523,6 +542,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 10089, y_origin = -6726, x_size = 7884, y_size = -1121} , fragmentRect = Rect {x_origin = 10089, y_origin = -6726, x_size = 7884, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -556,6 +576,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 8158, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 8158, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -588,6 +609,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 8158, y_origin = -7847, x_size = 6988, y_size = -1121} , fragmentRect = Rect {x_origin = 8158, y_origin = -7847, x_size = 6988, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -619,6 +641,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 15146, y_origin = -7847, x_size = 3825, y_size = -1121} , fragmentRect = Rect {x_origin = 15146, y_origin = -7847, x_size = 3825, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -639,6 +662,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 4594, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 4594, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -662,6 +686,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 4594, y_origin = -8968, x_size = 10907, y_size = -1121} , fragmentRect = Rect {x_origin = 4594, y_origin = -8968, x_size = 10907, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -701,6 +726,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 15501, y_origin = -8968, x_size = 1738, y_size = -1121} , fragmentRect = Rect {x_origin = 15501, y_origin = -8968, x_size = 1738, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -715,6 +741,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 6426, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 6426, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -743,6 +770,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 6426, y_origin = -10089, x_size = 5590, y_size = -1121} , fragmentRect = Rect {x_origin = 6426, y_origin = -10089, x_size = 5590, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -771,6 +799,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 12016, y_origin = -10089, x_size = 7183, y_size = -1121} , fragmentRect = Rect {x_origin = 12016, y_origin = -10089, x_size = 7183, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -796,6 +825,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 2652, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 2652, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -816,6 +846,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 2652, y_origin = -11210, x_size = 5383, y_size = -1121} , fragmentRect = Rect {x_origin = 2652, y_origin = -11210, x_size = 5383, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -843,6 +874,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = (), boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 8035, y_origin = -11210, x_size = 4041, y_size = -1121} , fragmentRect = Rect {x_origin = 8035, y_origin = -11210, x_size = 4041, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/emptyBoxMiddle.golden b/.golden/richParagraphLayout/emptyBoxMiddle.golden index b5869d9..f43efa0 100644 --- a/.golden/richParagraphLayout/emptyBoxMiddle.golden +++ b/.golden/richParagraphLayout/emptyBoxMiddle.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3139, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3139, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -23,6 +24,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 50, boxRightEdge = SpacedEdge 100, boxStartEdge = SpacedEdge 50, boxEndEdge = SpacedEdge 100} ] + , fragmentContentRect = Rect {x_origin = 3189, y_origin = 0, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 3189, y_origin = 0, x_size = 0, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -33,6 +35,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 3289, y_origin = 0, x_size = 1904, y_size = -1121} , fragmentRect = Rect {x_origin = 3289, y_origin = 0, x_size = 1904, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/hardBoxBreakLTR.golden b/.golden/richParagraphLayout/hardBoxBreakLTR.golden index 6ae0005..da20c1f 100644 --- a/.golden/richParagraphLayout/hardBoxBreakLTR.golden +++ b/.golden/richParagraphLayout/hardBoxBreakLTR.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3333, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3333, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -24,6 +25,7 @@ ParagraphLayout [ AncestorBox {boxUserData = "box2", boxLeftEdge = SpacedEdge 150, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 150, boxEndEdge = NoEdge} , AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 50, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 50, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3533, y_origin = 0, x_size = 2222, y_size = -1121} , fragmentRect = Rect {x_origin = 3533, y_origin = 0, x_size = 2222, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -40,6 +42,7 @@ ParagraphLayout [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 200, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 200} , AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 100, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 100} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 2222, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 2222, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -54,6 +57,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2522, y_origin = -1121, x_size = 3333, y_size = -1121} , fragmentRect = Rect {x_origin = 2522, y_origin = -1121, x_size = 3333, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/hardBoxBreakRTL.golden b/.golden/richParagraphLayout/hardBoxBreakRTL.golden index 81b9684..ab906d0 100644 --- a/.golden/richParagraphLayout/hardBoxBreakRTL.golden +++ b/.golden/richParagraphLayout/hardBoxBreakRTL.golden @@ -8,6 +8,7 @@ ParagraphLayout [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 200, boxStartEdge = SpacedEdge 200, boxEndEdge = NoEdge} , AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 100, boxStartEdge = SpacedEdge 100, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 999996545, y_origin = 0, x_size = 1632, y_size = -1500} , fragmentRect = Rect {x_origin = 999996545, y_origin = 0, x_size = 1632, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -22,6 +23,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999998477, y_origin = 0, x_size = 1523, y_size = -1500} , fragmentRect = Rect {x_origin = 999998477, y_origin = 0, x_size = 1523, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -38,6 +40,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999996645, y_origin = -1500, x_size = 2155, y_size = -1500} , fragmentRect = Rect {x_origin = 999996645, y_origin = -1500, x_size = 2155, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -56,6 +59,7 @@ ParagraphLayout [ AncestorBox {boxUserData = "box2", boxLeftEdge = SpacedEdge 150, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 150} , AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 50, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 50} ] + , fragmentContentRect = Rect {x_origin = 999999000, y_origin = -1500, x_size = 1000, y_size = -1500} , fragmentRect = Rect {x_origin = 999999000, y_origin = -1500, x_size = 1000, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/loremIpsum20em.golden b/.golden/richParagraphLayout/loremIpsum20em.golden index ede3a66..62b1662 100644 --- a/.golden/richParagraphLayout/loremIpsum20em.golden +++ b/.golden/richParagraphLayout/loremIpsum20em.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -55,6 +56,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -103,6 +105,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -157,6 +160,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -204,6 +208,7 @@ ParagraphLayout , fragmentLine = 5 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -258,6 +263,7 @@ ParagraphLayout , fragmentLine = 6 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -308,6 +314,7 @@ ParagraphLayout , fragmentLine = 7 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -359,6 +366,7 @@ ParagraphLayout , fragmentLine = 8 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -413,6 +421,7 @@ ParagraphLayout , fragmentLine = 9 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -460,6 +469,7 @@ ParagraphLayout , fragmentLine = 10 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -512,6 +522,7 @@ ParagraphLayout , fragmentLine = 11 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/loremIpsum20emCentre.golden b/.golden/richParagraphLayout/loremIpsum20emCentre.golden index 4aa0931..fcd4f93 100644 --- a/.golden/richParagraphLayout/loremIpsum20emCentre.golden +++ b/.golden/richParagraphLayout/loremIpsum20emCentre.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 845, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentRect = Rect {x_origin = 845, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -55,6 +56,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1278, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentRect = Rect {x_origin = 1278, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -103,6 +105,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 104, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentRect = Rect {x_origin = 104, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -157,6 +160,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1219, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentRect = Rect {x_origin = 1219, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -204,6 +208,7 @@ ParagraphLayout , fragmentLine = 5 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 615, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentRect = Rect {x_origin = 615, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -258,6 +263,7 @@ ParagraphLayout , fragmentLine = 6 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 387, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentRect = Rect {x_origin = 387, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -308,6 +314,7 @@ ParagraphLayout , fragmentLine = 7 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1013, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentRect = Rect {x_origin = 1013, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -359,6 +366,7 @@ ParagraphLayout , fragmentLine = 8 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 514, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentRect = Rect {x_origin = 514, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -413,6 +421,7 @@ ParagraphLayout , fragmentLine = 9 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1380, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentRect = Rect {x_origin = 1380, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -460,6 +469,7 @@ ParagraphLayout , fragmentLine = 10 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 400, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentRect = Rect {x_origin = 400, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -512,6 +522,7 @@ ParagraphLayout , fragmentLine = 11 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 3962, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentRect = Rect {x_origin = 3962, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/loremIpsum20emRight.golden b/.golden/richParagraphLayout/loremIpsum20emRight.golden index 859cd85..de94dca 100644 --- a/.golden/richParagraphLayout/loremIpsum20emRight.golden +++ b/.golden/richParagraphLayout/loremIpsum20emRight.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1690, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentRect = Rect {x_origin = 1690, y_origin = 0, x_size = 18310, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -55,6 +56,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2557, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentRect = Rect {x_origin = 2557, y_origin = -1121, x_size = 17443, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -103,6 +105,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 209, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentRect = Rect {x_origin = 209, y_origin = -2242, x_size = 19791, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -157,6 +160,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2438, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentRect = Rect {x_origin = 2438, y_origin = -3363, x_size = 17562, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -204,6 +208,7 @@ ParagraphLayout , fragmentLine = 5 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1231, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentRect = Rect {x_origin = 1231, y_origin = -4484, x_size = 18769, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -258,6 +263,7 @@ ParagraphLayout , fragmentLine = 6 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 774, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentRect = Rect {x_origin = 774, y_origin = -5605, x_size = 19226, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -308,6 +314,7 @@ ParagraphLayout , fragmentLine = 7 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2027, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentRect = Rect {x_origin = 2027, y_origin = -6726, x_size = 17973, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -359,6 +366,7 @@ ParagraphLayout , fragmentLine = 8 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1029, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentRect = Rect {x_origin = 1029, y_origin = -7847, x_size = 18971, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -413,6 +421,7 @@ ParagraphLayout , fragmentLine = 9 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2761, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentRect = Rect {x_origin = 2761, y_origin = -8968, x_size = 17239, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -460,6 +469,7 @@ ParagraphLayout , fragmentLine = 10 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 801, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentRect = Rect {x_origin = 801, y_origin = -10089, x_size = 19199, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -512,6 +522,7 @@ ParagraphLayout , fragmentLine = 11 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 7924, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentRect = Rect {x_origin = 7924, y_origin = -11210, x_size = 12076, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedDirectionComplexLTR.golden b/.golden/richParagraphLayout/mixedDirectionComplexLTR.golden index 1e51f1b..e791763 100644 --- a/.golden/richParagraphLayout/mixedDirectionComplexLTR.golden +++ b/.golden/richParagraphLayout/mixedDirectionComplexLTR.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 6732, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 6732, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -35,6 +36,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 6732, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentRect = Rect {x_origin = 6732, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -51,6 +53,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 8312, y_origin = 0, x_size = 3166, y_size = -1500} , fragmentRect = Rect {x_origin = 8312, y_origin = 0, x_size = 3166, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -71,6 +74,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 11478, y_origin = 0, x_size = 6578, y_size = -1500} , fragmentRect = Rect {x_origin = 11478, y_origin = 0, x_size = 6578, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -100,6 +104,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 18056, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentRect = Rect {x_origin = 18056, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -115,6 +120,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 19636, y_origin = 0, x_size = 3577, y_size = -1500} , fragmentRect = Rect {x_origin = 19636, y_origin = 0, x_size = 3577, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -134,6 +140,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 23213, y_origin = 0, x_size = 1344, y_size = -1500} , fragmentRect = Rect {x_origin = 23213, y_origin = 0, x_size = 1344, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedDirectionComplexRTL.golden b/.golden/richParagraphLayout/mixedDirectionComplexRTL.golden index 895e37d..a5a39e9 100644 --- a/.golden/richParagraphLayout/mixedDirectionComplexRTL.golden +++ b/.golden/richParagraphLayout/mixedDirectionComplexRTL.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999975443, y_origin = 0, x_size = 6501, y_size = -1500} , fragmentRect = Rect {x_origin = 999975443, y_origin = 0, x_size = 6501, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -35,6 +36,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 999981944, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentRect = Rect {x_origin = 999981944, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -51,6 +53,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 999983524, y_origin = 0, x_size = 3418, y_size = -1500} , fragmentRect = Rect {x_origin = 999983524, y_origin = 0, x_size = 3418, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -71,6 +74,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 999986942, y_origin = 0, x_size = 6326, y_size = -1500} , fragmentRect = Rect {x_origin = 999986942, y_origin = 0, x_size = 6326, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -100,6 +104,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999993268, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentRect = Rect {x_origin = 999993268, y_origin = 0, x_size = 1580, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -115,6 +120,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999994848, y_origin = 0, x_size = 3808, y_size = -1500} , fragmentRect = Rect {x_origin = 999994848, y_origin = 0, x_size = 3808, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -134,6 +140,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999998656, y_origin = 0, x_size = 1344, y_size = -1500} , fragmentRect = Rect {x_origin = 999998656, y_origin = 0, x_size = 1344, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedDirectionSimpleLTR.golden b/.golden/richParagraphLayout/mixedDirectionSimpleLTR.golden index abd2dae..bee293b 100644 --- a/.golden/richParagraphLayout/mixedDirectionSimpleLTR.golden +++ b/.golden/richParagraphLayout/mixedDirectionSimpleLTR.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3397, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3397, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -23,6 +24,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 3397, y_origin = 0, x_size = 1578, y_size = -1500} , fragmentRect = Rect {x_origin = 3397, y_origin = 0, x_size = 1578, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -35,6 +37,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 4975, y_origin = 0, x_size = 2979, y_size = -1500} , fragmentRect = Rect {x_origin = 4975, y_origin = 0, x_size = 2979, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedDirectionSimpleRTL.golden b/.golden/richParagraphLayout/mixedDirectionSimpleRTL.golden index 50a5852..5a994ab 100644 --- a/.golden/richParagraphLayout/mixedDirectionSimpleRTL.golden +++ b/.golden/richParagraphLayout/mixedDirectionSimpleRTL.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999992046, y_origin = 0, x_size = 2979, y_size = -1500} , fragmentRect = Rect {x_origin = 999992046, y_origin = 0, x_size = 2979, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -22,6 +23,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999995025, y_origin = 0, x_size = 1578, y_size = -1500} , fragmentRect = Rect {x_origin = 999995025, y_origin = 0, x_size = 1578, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -34,6 +36,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999996603, y_origin = 0, x_size = 3397, y_size = -1500} , fragmentRect = Rect {x_origin = 999996603, y_origin = 0, x_size = 3397, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedLineHeight.golden b/.golden/richParagraphLayout/mixedLineHeight.golden index 7a78ccc..84e1670 100644 --- a/.golden/richParagraphLayout/mixedLineHeight.golden +++ b/.golden/richParagraphLayout/mixedLineHeight.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -90, x_size = 3928, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 3928, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -24,6 +25,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "smallBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 3928, y_origin = 160, x_size = 2606, y_size = -1121} , fragmentRect = Rect {x_origin = 3928, y_origin = 0, x_size = 2606, y_size = -800} , fragmentPen = (0, -772) , fragmentGlyphs = @@ -40,6 +42,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 6534, y_origin = -90, x_size = 3928, y_size = -1121} , fragmentRect = Rect {x_origin = 6534, y_origin = 0, x_size = 3928, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -58,6 +61,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "largeBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 10462, y_origin = -290, x_size = 2549, y_size = -1121} , fragmentRect = Rect {x_origin = 10462, y_origin = 0, x_size = 2549, y_size = -1700} , fragmentPen = (0, -1222) , fragmentGlyphs = @@ -74,6 +78,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 13011, y_origin = -90, x_size = 3697, y_size = -1121} , fragmentRect = Rect {x_origin = 13011, y_origin = 0, x_size = 3697, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -90,6 +95,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 16708, y_origin = -90, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 16708, y_origin = 0, x_size = 0, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -101,6 +107,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "smallBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1540, x_size = 2606, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1700, x_size = 2606, y_size = -800} , fragmentPen = (0, -772) , fragmentGlyphs = @@ -117,6 +124,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2606, y_origin = -1790, x_size = 3928, y_size = -1121} , fragmentRect = Rect {x_origin = 2606, y_origin = -1700, x_size = 3928, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -135,6 +143,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "largeBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 6534, y_origin = -1990, x_size = 2318, y_size = -1121} , fragmentRect = Rect {x_origin = 6534, y_origin = -1700, x_size = 2318, y_size = -1700} , fragmentPen = (0, -1222) , fragmentGlyphs = @@ -150,6 +159,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 8852, y_origin = -1790, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 8852, y_origin = -1700, x_size = 0, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -160,6 +170,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3490, x_size = 3928, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3400, x_size = 3928, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -178,6 +189,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "smallBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 3928, y_origin = -3240, x_size = 2375, y_size = -1121} , fragmentRect = Rect {x_origin = 3928, y_origin = -3400, x_size = 2375, y_size = -800} , fragmentPen = (0, -772) , fragmentGlyphs = @@ -193,6 +205,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 6303, y_origin = -3490, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 6303, y_origin = -3400, x_size = 0, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -204,6 +217,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "largeBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4990, x_size = 2549, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4700, x_size = 2549, y_size = -1700} , fragmentPen = (0, -1222) , fragmentGlyphs = @@ -220,6 +234,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2549, y_origin = -4790, x_size = 3697, y_size = -1121} , fragmentRect = Rect {x_origin = 2549, y_origin = -4700, x_size = 3697, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -236,6 +251,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 6246, y_origin = -4790, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 6246, y_origin = -4700, x_size = 0, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -247,6 +263,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "smallBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6240, x_size = 2375, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6400, x_size = 2375, y_size = -800} , fragmentPen = (0, -772) , fragmentGlyphs = @@ -262,6 +279,7 @@ ParagraphLayout , fragmentLine = 5 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2375, y_origin = -6490, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 2375, y_origin = -6400, x_size = 0, y_size = -1300} , fragmentPen = (0, -1022) , fragmentGlyphs = @@ -273,6 +291,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "largeBox", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7990, x_size = 2318, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7700, x_size = 2318, y_size = -1700} , fragmentPen = (0, -1222) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedScript.golden b/.golden/richParagraphLayout/mixedScript.golden index e611d70..6d561bc 100644 --- a/.golden/richParagraphLayout/mixedScript.golden +++ b/.golden/richParagraphLayout/mixedScript.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -19,6 +20,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 777, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 777, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -33,6 +35,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 50, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 50, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3162, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 3162, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -47,6 +50,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 100, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 100} ] + , fragmentContentRect = Rect {x_origin = 3939, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 3939, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -60,6 +64,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 6374, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 6374, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -74,6 +79,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = SpacedEdge 150, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 150, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 8859, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 8859, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -88,6 +94,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 11194, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 11194, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -102,6 +109,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 200, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 200} ] + , fragmentContentRect = Rect {x_origin = 11971, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 11971, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -115,6 +123,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 14506, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 14506, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedScriptWrap.golden b/.golden/richParagraphLayout/mixedScriptWrap.golden index fc2e710..3a1d5b7 100644 --- a/.golden/richParagraphLayout/mixedScriptWrap.golden +++ b/.golden/richParagraphLayout/mixedScriptWrap.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -19,6 +20,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 777, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 777, y_origin = 0, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -33,6 +35,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 50, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 50, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3162, y_origin = 0, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 3162, y_origin = 0, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -47,6 +50,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 3939, y_origin = 0, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 3939, y_origin = 0, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -59,6 +63,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 100, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 100} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 1549, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 1549, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -71,6 +76,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1649, y_origin = -1121, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 1649, y_origin = -1121, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -85,6 +91,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = SpacedEdge 150, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 150, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 4134, y_origin = -1121, x_size = 763, y_size = -1121} , fragmentRect = Rect {x_origin = 4134, y_origin = -1121, x_size = 763, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -97,6 +104,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 1549, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 1549, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -110,6 +118,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = NoEdge, boxStartEdge = NoEdge, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 1549, y_origin = -2242, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 1549, y_origin = -2242, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -124,6 +133,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 200, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 200} ] + , fragmentContentRect = Rect {x_origin = 2326, y_origin = -2242, x_size = 2335, y_size = -1121} , fragmentRect = Rect {x_origin = 2326, y_origin = -2242, x_size = 2335, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -137,6 +147,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 777, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 777, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/mixedSizes.golden b/.golden/richParagraphLayout/mixedSizes.golden index 0dd4406..101200f 100644 --- a/.golden/richParagraphLayout/mixedSizes.golden +++ b/.golden/richParagraphLayout/mixedSizes.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1651, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 1651, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -21,6 +22,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "smallBox1", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 1651, y_origin = 0, x_size = 1956, y_size = -841} , fragmentRect = Rect {x_origin = 1651, y_origin = 0, x_size = 1956, y_size = -841} , fragmentPen = (0, -699) , fragmentGlyphs = @@ -37,6 +39,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 3607, y_origin = 0, x_size = 1651, y_size = -1121} , fragmentRect = Rect {x_origin = 3607, y_origin = 0, x_size = 1651, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -52,6 +55,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "smallBox2", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 5258, y_origin = 0, x_size = 1956, y_size = -841} , fragmentRect = Rect {x_origin = 5258, y_origin = 0, x_size = 1956, y_size = -841} , fragmentPen = (0, -699) , fragmentGlyphs = @@ -68,6 +72,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 7214, y_origin = 0, x_size = 1420, y_size = -1121} , fragmentRect = Rect {x_origin = 7214, y_origin = 0, x_size = 1420, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/nestedBoxes.golden b/.golden/richParagraphLayout/nestedBoxes.golden index 65f1855..ff49547 100644 --- a/.golden/richParagraphLayout/nestedBoxes.golden +++ b/.golden/richParagraphLayout/nestedBoxes.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 8569, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 8569, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -37,6 +38,7 @@ ParagraphLayout [ AncestorBox {boxUserData = "box3", boxLeftEdge = SpacedEdge 0, boxRightEdge = SpacedEdge 0, boxStartEdge = SpacedEdge 0, boxEndEdge = SpacedEdge 0} , AncestorBox {boxUserData = "box2", boxLeftEdge = SpacedEdge 0, boxRightEdge = NoEdge, boxStartEdge = SpacedEdge 0, boxEndEdge = NoEdge} ] + , fragmentContentRect = Rect {x_origin = 8569, y_origin = 0, x_size = 3350, y_size = -1121} , fragmentRect = Rect {x_origin = 8569, y_origin = 0, x_size = 3350, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -55,6 +57,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box2", boxLeftEdge = NoEdge, boxRightEdge = SpacedEdge 0, boxStartEdge = NoEdge, boxEndEdge = SpacedEdge 0} ] + , fragmentContentRect = Rect {x_origin = 11919, y_origin = 0, x_size = 2657, y_size = -1121} , fragmentRect = Rect {x_origin = 11919, y_origin = 0, x_size = 2657, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/neutralDirectionLTR.golden b/.golden/richParagraphLayout/neutralDirectionLTR.golden index 76079bf..1306cfd 100644 --- a/.golden/richParagraphLayout/neutralDirectionLTR.golden +++ b/.golden/richParagraphLayout/neutralDirectionLTR.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2003, y_size = -1500} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2003, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/neutralDirectionRTL.golden b/.golden/richParagraphLayout/neutralDirectionRTL.golden index 41f3a51..61ed36b 100644 --- a/.golden/richParagraphLayout/neutralDirectionRTL.golden +++ b/.golden/richParagraphLayout/neutralDirectionRTL.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999997997, y_origin = 0, x_size = 2003, y_size = -1500} , fragmentRect = Rect {x_origin = 999997997, y_origin = 0, x_size = 2003, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/newline1Paragraph.golden b/.golden/richParagraphLayout/newline1Paragraph.golden index 0ce5142..ae3ee15 100644 --- a/.golden/richParagraphLayout/newline1Paragraph.golden +++ b/.golden/richParagraphLayout/newline1Paragraph.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/newline1TextParagraph.golden b/.golden/richParagraphLayout/newline1TextParagraph.golden index df05057..4f3214c 100644 --- a/.golden/richParagraphLayout/newline1TextParagraph.golden +++ b/.golden/richParagraphLayout/newline1TextParagraph.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -16,6 +17,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999999649, y_origin = -1500, x_size = 351, y_size = -1500} , fragmentRect = Rect {x_origin = 999999649, y_origin = -1500, x_size = 351, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/newline2Paragraph.golden b/.golden/richParagraphLayout/newline2Paragraph.golden index 4826757..ccfec85 100644 --- a/.golden/richParagraphLayout/newline2Paragraph.golden +++ b/.golden/richParagraphLayout/newline2Paragraph.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -16,6 +17,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1000000000, y_origin = -1500, x_size = 0, y_size = -1500} , fragmentRect = Rect {x_origin = 1000000000, y_origin = -1500, x_size = 0, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/newline2TextParagraph.golden b/.golden/richParagraphLayout/newline2TextParagraph.golden index b7a9962..2269cff 100644 --- a/.golden/richParagraphLayout/newline2TextParagraph.golden +++ b/.golden/richParagraphLayout/newline2TextParagraph.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentRect = Rect {x_origin = 1000000000, y_origin = 0, x_size = 0, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -16,6 +17,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 1000000000, y_origin = -1500, x_size = 0, y_size = -1500} , fragmentRect = Rect {x_origin = 1000000000, y_origin = -1500, x_size = 0, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = @@ -26,6 +28,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 999999649, y_origin = -3000, x_size = 351, y_size = -1500} , fragmentRect = Rect {x_origin = 999999649, y_origin = -3000, x_size = 351, y_size = -1500} , fragmentPen = (0, -1085) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/spaceBoxCollapsed.golden b/.golden/richParagraphLayout/spaceBoxCollapsed.golden index d17a210..b3f30b9 100644 --- a/.golden/richParagraphLayout/spaceBoxCollapsed.golden +++ b/.golden/richParagraphLayout/spaceBoxCollapsed.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 446, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 446, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -17,6 +18,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 589, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 589, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -28,6 +30,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 522, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 522, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -39,6 +42,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 465, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 465, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -50,6 +54,7 @@ ParagraphLayout , fragmentLine = 5 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 559, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 559, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -61,6 +66,7 @@ ParagraphLayout , fragmentLine = 6 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 589, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -5605, x_size = 589, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -72,6 +78,7 @@ ParagraphLayout , fragmentLine = 7 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 590, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 590, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -83,6 +90,7 @@ ParagraphLayout , fragmentLine = 8 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 511, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 511, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/spaceBoxMiddle.golden b/.golden/richParagraphLayout/spaceBoxMiddle.golden index 0832245..9231869 100644 --- a/.golden/richParagraphLayout/spaceBoxMiddle.golden +++ b/.golden/richParagraphLayout/spaceBoxMiddle.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2581, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 2581, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -22,6 +23,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 50, boxRightEdge = SpacedEdge 100, boxStartEdge = SpacedEdge 50, boxEndEdge = SpacedEdge 100} ] + , fragmentContentRect = Rect {x_origin = 2631, y_origin = 0, x_size = 231, y_size = -1121} , fragmentRect = Rect {x_origin = 2631, y_origin = 0, x_size = 231, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -33,6 +35,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 2962, y_origin = 0, x_size = 1673, y_size = -1121} , fragmentRect = Rect {x_origin = 2962, y_origin = 0, x_size = 1673, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/.golden/richParagraphLayout/spaceBoxPreserved.golden b/.golden/richParagraphLayout/spaceBoxPreserved.golden index 33de7e0..2e2ed16 100644 --- a/.golden/richParagraphLayout/spaceBoxPreserved.golden +++ b/.golden/richParagraphLayout/spaceBoxPreserved.golden @@ -6,6 +6,7 @@ ParagraphLayout , fragmentLine = 1 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = 0, x_size = 446, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = 0, x_size = 446, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -17,6 +18,7 @@ ParagraphLayout , fragmentLine = 2 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 589, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -1121, x_size = 589, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -28,6 +30,7 @@ ParagraphLayout , fragmentLine = 3 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 522, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -2242, x_size = 522, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -39,6 +42,7 @@ ParagraphLayout , fragmentLine = 4 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 465, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -3363, x_size = 465, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -50,6 +54,7 @@ ParagraphLayout , fragmentLine = 5 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 559, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -4484, x_size = 559, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -62,6 +67,7 @@ ParagraphLayout , fragmentAncestorBoxes = [ AncestorBox {boxUserData = "box1", boxLeftEdge = SpacedEdge 50, boxRightEdge = SpacedEdge 100, boxStartEdge = SpacedEdge 50, boxEndEdge = SpacedEdge 100} ] + , fragmentContentRect = Rect {x_origin = 50, y_origin = -5605, x_size = 0, y_size = -1121} , fragmentRect = Rect {x_origin = 50, y_origin = -5605, x_size = 0, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -72,6 +78,7 @@ ParagraphLayout , fragmentLine = 7 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 589, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -6726, x_size = 589, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -83,6 +90,7 @@ ParagraphLayout , fragmentLine = 8 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 590, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -7847, x_size = 590, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = @@ -94,6 +102,7 @@ ParagraphLayout , fragmentLine = 9 , fragmentAncestorBoxes = [] + , fragmentContentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 511, y_size = -1121} , fragmentRect = Rect {x_origin = 0, y_origin = -8968, x_size = 511, y_size = -1121} , fragmentPen = (0, -932) , fragmentGlyphs = diff --git a/CHANGELOG.md b/CHANGELOG.md index e63b51e..458ea02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ * Added option to prevent making boxes invisible when they contain no glyphs and no forced (hard) line breaks. +* Added `fragmentContentRect` to represent parts of the CSS content box + for inline elements. + * Added function `paragraphSafeWidth` to help calculating max-content width for CSS. diff --git a/lib/Data/Text/ParagraphLayout/Rich.hs b/lib/Data/Text/ParagraphLayout/Rich.hs index bb5f29b..c0456b1 100644 --- a/lib/Data/Text/ParagraphLayout/Rich.hs +++ b/lib/Data/Text/ParagraphLayout/Rich.hs @@ -60,6 +60,7 @@ module Data.Text.ParagraphLayout.Rich , fragmentUserData , fragmentLine , fragmentAncestorBoxes + , fragmentContentRect , fragmentRect , fragmentPen , fragmentGlyphs diff --git a/src/Data/Text/ParagraphLayout/Internal/Fragment.hs b/src/Data/Text/ParagraphLayout/Internal/Fragment.hs index ba3a78e..5467f84 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Fragment.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Fragment.hs @@ -37,6 +37,14 @@ data Fragment d = Fragment -- (starting from the nearest ancestor and continuing upwards through the -- tree, up to but excluding the root) and the spacing required by them. + , fragmentContentRect :: Rect Int32 + -- ^ Physical position of the fragment within the paragraph, calculated + -- using all glyph advances in this fragment and the used font's ascent + -- and descent metrics. + -- + -- This can be used to determine the /content box/ of an inline element + -- as understood in CSS. + , fragmentRect :: Rect Int32 -- ^ Physical position of the fragment within the paragraph, calculated -- using all glyph advances in this fragment and the calculated line height. @@ -57,8 +65,6 @@ data Fragment d = Fragment -- /layout bounds/ defined by CSS. -- -- Box spacing is not included. - -- - -- TODO: Define content box. , fragmentPen :: (Int32, Int32) -- ^ Coordinates of the initial pen position, from which the first glyph @@ -108,6 +114,8 @@ shapedRun f = (x, y, g) shiftFragment :: Int32 -> Int32 -> Fragment d -> Fragment d shiftFragment dx dy f = f' where - f' = f { fragmentRect = r' } + f' = f { fragmentContentRect = cr', fragmentRect = r' } + cr' = cr { x_origin = x_origin r + dx, y_origin = y_origin r + dy } + cr = fragmentContentRect f r' = r { x_origin = x_origin r + dx, y_origin = y_origin r + dy } r = fragmentRect f diff --git a/src/Data/Text/ParagraphLayout/Internal/Layout.hs b/src/Data/Text/ParagraphLayout/Internal/Layout.hs index 9421634..4cfe0fc 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Layout.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Layout.hs @@ -167,9 +167,19 @@ positionFragmentH line originY originX (WithBoxes lbs (WithSpan rs pf) rbs) = contentWidth = PF.advance pf leftSpacing = totalLeftSpacing bs rightSpacing = totalRightSpacing bs - frag = Fragment userData line bs rect (penX, penY) (PF.glyphs pf) + frag = Fragment + { fragmentUserData = userData + , fragmentLine = line + , fragmentAncestorBoxes = bs + , fragmentContentRect = contentRect + , fragmentRect = rect + , fragmentPen = (penX, penY) + , fragmentGlyphs = (PF.glyphs pf) + } userData = RS.spanUserData rs bs = ancestorBoxes lbs rbs rs + contentRect = Rect contentX contentY contentWidth (-normalLineHeight) + contentY = originY + penY + ascent rect = Rect contentX originY contentWidth (-lineHeight) penX = 0 penY = descent + leading `div` 2 - lineHeight diff --git a/test/Data/Text/ParagraphLayout/PrettyShow.hs b/test/Data/Text/ParagraphLayout/PrettyShow.hs index 455bdf9..4b11bb0 100644 --- a/test/Data/Text/ParagraphLayout/PrettyShow.hs +++ b/test/Data/Text/ParagraphLayout/PrettyShow.hs @@ -109,7 +109,7 @@ instance Show d => PrettyShow (Plain.SpanLayout d) where ] instance Show d => PrettyShow (Fragment d) where - prettyShow (Fragment d l bs r pen glyphs) = concat + prettyShow (Fragment d l bs cr r pen glyphs) = concat [ "Fragment" , newline , indent3 @@ -126,6 +126,10 @@ instance Show d => PrettyShow (Fragment d) where , concat $ commaFirstList indent4 $ map show bs , newline , indent3 + , ", fragmentContentRect = " + , show cr + , newline + , indent3 , ", fragmentRect = " , show r , newline -- 2.30.2