0.11.0
This release contains a large refactor (#206), performance improvements, and bug fixes.
Links
Added
- Add function to set metrics and size simultaneously
- Cache
rustybuzz
shape plans - Add capability to synthesize italic
- New wrapping option
WordOrGlyph
to allow word to glyph fallback
Fixed
Buffer::set_rich_text
: Only add attrs if they do not match the defaults- Do not use Emoji fonts as monospace fallback
- Refresh the attrs more often in basic shaping
Buffer
: fix max scroll going one line beyond end- Improve reliability of
layout_cursor
- Handle multiple BiDi paragraphs in
ShapeLine
gracefully - Improved monospace font fallback
- Only commit a previous word range if we had an existing visual line
Changed
- Update terminal example using
colored
- Significant improvements for
Editor
,SyntaxEditor
, andViEditor
- Require default Attrs to be specified in
Buffer::set_rich_text
- Bump
fontdb
to0.16
- Allow Clone of layout structs
- Move cursor motions to new
Motion
enum, move handling toBuffer
- Ensure that all shaping and layout uses scratch buffer
BufferLine
: userlayout_in_buffer
to implement layoutBufferLine
: remove wrap from struct, as wrap is passed to layout- Refactor of scroll and shaping
- Move
color
andx_opt
out of Cursor - Add size limit to
font_matches_cache
and clear it when it is reached - Update
swash
to0.1.12
- Set default buffer wrap to
WordOrGlyph
Removed
- Remove patch to load Redox system fonts, as fontdb does it now