Name | Crates.io | Docs |
---|---|---|
parley |
Crates.io | Docs |
fontique |
Crates.io | Docs |
This release has an MSRV of 1.82.
Added
Parley
- Editor features required by Android IME. (#334 by @mwcampbell)
Changed
Parley
- Breaking change:
Layout::min_content_width
,Layout::max_content_width
, andLayout::content_widths
have been replaced withLayout::calculate_content_widths
, which does not internally cache the widths. This means thatLayout
is nowSync
again, but callers will have to cache the min and max content widths themselves. (#353 by @valadaptive) - Breaking change: the line height style property (
StyleProperty::LineHeight
and theline_height
field onTextStyle
) is now aLineHeight
enum that allows you to specify absolute, font-size-relative, and font-metrics-relative line heights.
Previously, it was always font-size-relative. (#362 by @valadaptive)- The default line height was previously
LineHeight::FontSizeRelative(1.0)
if you usedRangedStyleBuilder
, orLineHeight::FontSizeRelative(1.2)
if you usedTreeStyleBuilder
.
It is nowLineHeight::MetricsRelative(1.0)
in both cases.
This will affect layout if you don't specify your own line height.
- The default line height was previously
- Breaking change:
{RangedBuilder, TreeBuilder}::{build_into, build}
methods now consumeself
. (#369 by @dhardy)
New Contributors
Full Changelog: v0.4.0...v0.5.0