4.9 KiB
4.9 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.11.2] - 2024-02-08
Fixed
- Fix glyph start and end when using
shape-run-cache
[0.11.1] - 2024-02-08
Added
- Add
shape-run-cachefeature, that can significantly improve shaping performance
Removed
- Remove editor-libcosmic, see cosmic-edit instead
[0.11.0] - 2024-02-07
Added
- Add function to set metrics and size simultaneously
- Cache
rustybuzzshape plans - Add capability to synthesize italic
- New wrapping option
WordOrGlyphto 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
ShapeLinegracefully - 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
fontdbto0.16 - Allow Clone of layout structs
- Move cursor motions to new
Motionenum, move handling toBuffer - Ensure that all shaping and layout uses scratch buffer
BufferLine: userlayout_in_bufferto implement layoutBufferLine: remove wrap from struct, as wrap is passed to layout- Refactor of scroll and shaping
- Move
colorandx_optout of Cursor - Add size limit to
font_matches_cacheand clear it when it is reached - Update
swashto0.1.12 - Set default buffer wrap to
WordOrGlyph
Removed
- Remove patch to load Redox system fonts, as fontdb does it now
[0.10.0] - 2023-10-19
Added
- Added
Buffer::set_rich_textmethod - Add
Align::Endfor end-based alignment - Add more
Debugimplementations - Add feature to warn on missing glyphs
- Add easy conversions for tuples/arrays for
Color - Derive
CloneforAttrsList - Add feature to allow
fontdbto getfontconfiginformation - Add benchmarks to accurately gauge improvements
- Add image render tests
- Allow BSD-2-Clause and BSD-3-Clause licneses in cargo-deny
Fixed
- Fix
no_stdbuild - Fix
BufferLine::set_aligndocs to not mention shape reset is performed - Fix width computed during unconstrained layout and add test for it
- Set
cursor_movedto true inEditor::insert_string - Fix
NextWordaction inEditorwhen line ends with word boundaries - Fix building
editor-libcosmicwithvifeature - Respect
fontconfigfont aliases when enabled - Fix rendering of RTL words
Changed
- Unify
no_stdandstdimpls ofFontSystem - Move
hashbrownbehindno_stdfeature - Require either
stdorno_stdfeature to be specified - Use a scratch buffer to reduce allocations
- Enable
stdfeature withfontconfigfeature - Enable
fontconfigfeature by default - Refactor code in
ShapeLine::layout - Set MSRV to
1.65 - Make
Edit::copy_selectionimmutable - Rewrite
PreviousWordlogic inEditorwith iterators - Use attributes at cursor position for insertions in
Editor - Update all dependencies
- Use
self_cellfor creating self-referential struct
[0.9.0] - 2023-07-06
Added
- Add
Shapingenum to allow selecting the shaping strategy - Add
Buffer::new_emptyto createBufferwithoutFontSystem - Add
BidiParagraphsiterator - Allow setting
Cursorcolor - Allow setting
Editorcursor - Add
PhysicalGlyphthat allows computingCacheKeyafter layout - Add light syntax highlighter to
libcosmicexample
Fixed
- Fix WebAssembly support
- Fix alignment when not wrapping
- Fallback to monospaced font if Monospace family is not found
- Align glyphs in a
LayoutRunto baseline
Changed
- Update
fontdbto 0.14.1 - Replace ouroboros with aliasable
- Use
BidiParagraphsiterator instead ofstr::Lines - Update
libcosmicversion
Removed
LayoutGlyphno longer hasx_intandy_int, usePhysicalGlyphinstead
[0.8.0] - 2023-04-03
Added
FontSystem::new_with_fontshelper- Alignment and justification
FontSystem::db_mutprovides mutable access tofontdbdatabaserustybuzzis re-exported
Fixed
- Fix some divide by zero panics
- Redox now uses
stdFontSystem - Layout system improvements
BufferLinke::set_texthas been made more efficient- Fix potential panic on window resize
Changed
- Use
f32instead ofi32for lengths FontSystemno longer self-referencingSwashCashno longer keeps reference toFontSystem
Removed
Attrs::monospacedis removed, useFamily::Monospaceinstead