~jaro/balkon

balkon/lib/Data/Text/ParagraphLayout/Rich.hs -rw-r--r-- 3.1 KiB
Add paragraphLines to Rich ParagraphLayout.

BREAKING: The paragraphLines field of ParagraphLayout must be preserved
for pagination.

BREAKING: The width of a rich text ParagraphLayout will now remain
unchanged after pagination.

BREAKING: Empty space at the top of the first line and at the bottom
of the last line in a ParagraphLayout will now be preserved.
Allow overriding font ascender and descender.

Provides an easy option for influencing vertical metrics, which may be
useful for implementing replaced and inline-block elements.
Add options for vertical alignment.
Add content rect to Fragment.
Add helper function to strut empty boxes.
Expose paragraphSafeWidth.
Allow explicit control of box collapsing.
Add start/end paragraph alignment.

In the future, when the paragraph direction is not explicitly set,
start/end options will allow alignment to change line by line,
whereas left/right alignment will be constant.
Add centre/right paragraph alignment.
Remove paragraphLineHeight from Rich interface.
Describe box edges with extensible type.
Expose piecewise paragraph construction.
Add ancestor boxes to interface.
Add required textDirection to TextOptions.
Add public Rich interface.