8000 Release v0.5.0 · linebender/parley · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v0.5.0

Latest
Compare
Choose a tag to compare
@xStrom xStrom released this 01 Jun 10:08
· 2 commits to main since this release
18aa136
Name Crates.io Docs
parley Crates.io Docs
fontique Crates.io Docs

This release has an MSRV of 1.82.

Added

Parley

Changed

Parley

  • Breaking change: Layout::min_content_width, Layout::max_content_width, and Layout::content_widths have been replaced with Layout::calculate_content_widths, which does not internally cache the widths. This means that Layout is now Sync 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 the line_height field on TextStyle) is now a LineHeight 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 used RangedStyleBuilder, or LineHeight::FontSizeRelative(1.2) if you used TreeStyleBuilder.
      It is now LineHeight::MetricsRelative(1.0) in both cases.
      This will affect layout if you don't specify your own line height.
  • Breaking change: {RangedBuilder, TreeBuilder}::{build_into, build} methods now consume self. (#369 by @dhardy)

New Contributors

Full Changelog: v0.4.0...v0.5.0

0