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

Releases: linebender/parley

v0.5.0

01 Jun 10:08
18aa136
Compare
Choose a tag to compare
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

v0.4.0

08 May 15:06
101f4e8
Compare
Choose a tag to compare
Name Crates.io Docs
parley Crates.io Docs
fontique Crates.io Docs

This release has an MSRV of 1.82.

Migration

Quantization of vertical layout metrics is now optional.
For an easy upgrade we recommend enabling it by setting quantize to true when calling LayoutContext::ranged_builder or LayoutContext::tree_builder.

Added

Parley

  • Option to skip quantization of vertical layout metrics for advanced rendering use cases. (#297 by @valadaptive, #344 by @xStrom)
  • The WordBreak and OverflowWrap style properties for controlling line wrapping. (#315 by @valadaptive)
  • PlainEditor methods raw_selection and raw_text. (#316, #317 by @mwcampbell)
  • PlainEditor::selection_geometry_with, the equivalent of Selection::geometry_with method. (#318 by @valadaptive)
  • BreakLines::is_done method to check if all the text has been placed into lines. (#319 by @valadaptive)

Changed

Parley

  • Breaking change: Selection::geometry, Selection::geometry_with, and PlainEditor::selection_geometry now include the line indices that the selection rectangles belong to. (#318 by @valadaptive)
  • Updated to accesskit 0.19. (#294 by @waywardmonkeys, #348 by @xStrom)
  • Now displaying selected newlines as whitespace in the selection highlight. (#296 by @valadaptive)
  • Made BreakReason public. (#300 by @valadaptive)

Fontique

  • Breaking change: Collection::register_fonts now takes a Blob<u8> instead of a Vec<u8>. (#306 by @valadaptive)
  • Breaking change: Collection::register_fonts now takes an optional second parameter which allows overriding the metadata used for matching the font. (#312 by @valadaptive)

Fixed

Parley

  • Text editing for layouts which contain inline boxes. (#299 by @valadaptive)
  • Cursor navigation in RTL text sometimes getting stuck within a line. (#331 by @valadaptive)
  • Using Layout::align on an aligned layout without breaking lines again. (#342 by @xStrom)
  • Selection box height going below ascent + descent with small line heights. (#344 by @xStrom)
  • Rounding error accumulation of vertical layout metrics. (#344 by @xStrom)

Fontique

  • Panic on macOS when running in debug mode. (#335 by @NoahR02)

New Contributors

Full Changelog: v0.3.0...v0.4.0

Parley 0.3.0

27 Feb 21:43
f59c98b
Compare
Choose a tag to compare

The time has come to release v0.3.0 of Parley along with v0.3.0 of Fontique.

AccessKit integration, Cursor redesign, and significant changes to PlainEditor are some of the highlights.

This release has an MSRV of 1.82.

For more details check out the changelog.

Parley 0.2.0

10 Oct 16:59
1adcf99
Compare
Choose a tag to compare

With growing community effort, we have reached v0.2.0 of Parley!

This release also conincides with the release of v0.2.0 of Fontique.

This release has an MSRV of 1.75.

This remains alpha-quality software. There are plenty of issues, known and unknown, and we look forward to further development.

Added

Parley

  • Example using tiny-skia which renders into a png (#55 by @nicoburns)
    • Breaking change: There is now a blanket implementation for Brush.
  • A swash example which renders into a png (#54 by @nicoburns)
  • An example with Vello on Winit which shows a basic text editor (#106 by @dfrg)
  • PlainEditor, a basic action-based text editor based on Parley Selection and Cursor (#126 by @xorgy)
  • Tree style builder (#76 by @nicoburns)
  • Conversions for FontFamily, FontStack, and StyleProperty to make styling more ergonomic (#129 by @xorgy)

Changed

General

Parley

  • Emoji clusters now get an Emoji family added by default (#56 by @dfrg)
  • Style builders now accept Into<StyleProperty<'a, B: Brush>> so you can push a GenericFamily or FontStack directly. (#129 by @xorgy)

Fontique

Fixed

Fontique

Removed

Fontique

  • Breaking change: removed conversion to/from icu_properties::Script for fontique::Script (#72 by @waywardmonkeys)
    • This can be restored by using the icu_properties feature of fontique.

Full Changelog: v0.1.0...v0.2.0

Parley 0.1.0

01 May 15:21
0b62375
Compare
Choose a tag to compare

We are proud to announce that after years of development we have released v0.1.0 of Parley!

This release also conincides with the release of v0.1.0 of Fontique.

These are alpha-quality software. There are plenty of known and unknown issues, and we expect to continue very active development.

0