Releases: pop-os/cosmic-text
Releases · pop-os/cosmic-text
0.14.2
0.14.1
Links
Added
- Allow font to be stored as
peniko::Font
withpeniko
feature
0.14.0
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
0.13.1
Links
Fixed
- Fix glyph start+end indices in
Basic
shaping
0.13.0
Links
Added
- Add
Buffer::set_tab_width
function - Add
AttrsList::spans_iter
and use it inBuffer::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 inFamilyOwned
- Optimize
Buffer::set_rich_text
for when the buffer is reconstructed - Move
ShapeBuffer
toFontSystem
- 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 upstd
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
Links
Changed
- Make collection of monospace fallback information optional
0.12.0
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
Fix glyph start and end when using shape-run-cache
.
Links
0.11.1
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