Skip to content

Releases: pop-os/cosmic-text

0.14.2

14 Apr 14:58
9e7a56f
Compare
Choose a tag to compare

Links

Fixed

  • Ensure MSRV of 1.75.0

0.14.1

04 Apr 17:54
87a9370
Compare
Choose a tag to compare

Links

Added

  • Allow font to be stored as peniko::Font with peniko feature

0.14.0

31 Mar 19:01
6598c7c
Compare
Choose a tag to compare

Links

Added

  • Add configurable font fallback lists using Fallback trait
  • Add letter spacing support in Attrs
  • Add arbitrary variable font features in Attrs

0.13.2

11 Mar 15:46
0483999
Compare
Choose a tag to compare

Links

Fixed

  • Fix build for Android targets

0.13.1

10 Mar 17:26
60f2c2b
Compare
Choose a tag to compare

Links

Fixed

  • Fix glyph start+end indices in Basic shaping

0.13.0

10 Mar 16:59
f7ad0bf
Compare
Choose a tag to compare

Links

Added

  • Add Buffer::set_tab_width function
  • Add AttrsList::spans_iter and use it in Buffer::append
  • Add alignment option to Buffer::set_rich_text
  • Add SwashCache::get_outline_commands_uncached

Fixed

  • Fix typo in fallback font name Noto Sans CJK JP
  • Fix the character index used for getting a glyph attribute in basic shaping
  • Avoid debug assertion when handling Motion::BufferEnd
  • Handle single wrapped line scrolling
  • Reduce memory usage and loading time of FontSystem
  • Resolve lints
  • Use FreeMono as Braille script fallback
  • Load fonts prior to setting defaults

Changed

  • Use smol_str for family name in FamilyOwned
  • Optimize Buffer::set_rich_text for when the buffer is reconstructed
  • Move ShapeBuffer to FontSystem
  • Cache the monospace fallbacks buffer in FontSystem
  • Apply fallback font to more Unix-like operating systems
  • Use hinting for swash_outline_commands
  • Update swash to 0.2.0 and hook up std feature
  • Update minimum supported Rust version to 1.75
  • Update default fonts (for COSMIC, users should set their own as desired)

Removed

  • Drop ShapePlanCache

0.12.1

31 Jul 16:04
58c2ccd
Compare
Choose a tag to compare

Links

Changed

  • Make collection of monospace fallback information optional

0.12.0

18 Jun 21:49
a03ec6b
Compare
Choose a tag to compare

This release focused on resolving some longstanding issues for toolkit use.

Links

Added

  • Cache codepoint support info for monospace fonts
  • Store a sorted list of monospace font ids in font system
  • Add line ending abstraction
  • Horizontal scroll support in Buffer
  • Concurrently load and parse fonts
  • Add metrics to attributes
  • Support expanding tabs
  • Add an option to set selected text color
  • Add Edit::cursor_position
  • Allow layout to be calculated without specifying width
  • Allow for undefined buffer width and/or height
  • Add method to set syntax highlighting by file extension

Fixed

  • Fix no_std build
  • Handle inverted Ranges in add_span
  • Fix undo and redo updating editor modified status
  • Ensure at least one line is in Buffer

Changed

  • Enable vi feature for docs.rs build
  • Convert editor example to winit
  • Refactor scrollbar width handling for editor example
  • Convert rich-text example to winit
  • Only try monospace fonts that support at least one requested script
  • Skip trying monospace fallbacks if default font supports all codepoints
  • Make vertical scroll by pixels instead of layout lines
  • Upgrade dependencies and re-export ttf-parser

0.11.2

09 Feb 22:14
0cb6eba
Compare
Choose a tag to compare

Fix glyph start and end when using shape-run-cache.

Links

0.11.1

08 Feb 18:20
cb447ea
Compare
Choose a tag to compare

This release adds a new shape-run-cache feature that, when enabled, will cache the results of shaping operations to significantly improve performance, at the cost of increased memory usage. Make sure to trim the cache with the ShapeRunCache::trim function regularly. Also make sure to set keep_ages to a large enough value that entries are not removed too early, as minor changes in the source text can switch between active entries (such as adding or removing a space in the middle of a word).

Links

Added

  • Add shape-run-cache feature, that can significantly improve shaping performance

Removed

  • Remove editor-libcosmic, see cosmic-edit instead