Héctor Ramón Jiménez
ffb520fb37
Decouple caching from Paragraph API
2024-07-17 18:50:53 +02:00
Héctor Ramón
616689ca54
Update cosmic-text and resvg ( #2416 )
...
* Update `cosmic-text`, `glyphon`, and `resvg`
* Fix slow font fallback with `Shaping::Basic` in `cosmic-text`
* Update `cosmic-text` and `resvg`
* Update `cosmic-text`
* Fix `SelectAll` action in `editor`
* Fix some panics in `graphics::text::editor`
* Remove empty `if` statement in `tiny_skia::vector`
* Update `cosmic-text`, `glyphon`, and `rustc-hash`
2024-07-17 13:00:00 +02:00
Héctor Ramón Jiménez
6216c513d5
Use generic Content in Text to avoid reallocation in fill_text
2024-04-01 11:30:01 +02:00
Héctor Ramón Jiménez
3d88ceb482
Avoid division by zero in grapheme_position
2024-01-11 08:32:30 +01:00
Héctor Ramón Jiménez
9c50a7ed7e
Fix grapheme_position when ligatures are present
2024-01-11 08:29:44 +01:00
Héctor Ramón Jiménez
57f9024e89
Fix intra-doc broken links
2023-10-27 05:19:35 +02:00
Héctor Ramón Jiménez
625cd745f3
Write documentation for the new text APIs
2023-10-27 05:04:14 +02:00
Héctor Ramón Jiménez
346af3f8b0
Make FontSystem global and simplify Paragraph API
2023-09-11 02:47:24 +02:00
Héctor Ramón Jiménez
bbb9c2d928
Count grapheme clusters in Paragraph::grapheme_position
2023-09-09 23:05:44 +02:00
Héctor Ramón Jiménez
3450987355
Invalidate existing paragraphs when new fonts are loaded
2023-09-09 11:21:32 +02:00
Héctor Ramón Jiménez
34495bba1c
Introduce keyed::Column widget
2023-09-04 02:55:09 +02:00
Héctor Ramón Jiménez
6758de2b43
Fix Default implementation for Paragraph
2023-09-01 04:14:06 +02:00
Héctor Ramón Jiménez
51e69d7040
Replace MaybeUninit with Option in paragraph
2023-09-01 04:04:15 +02:00
Héctor Ramón Jiménez
935c722a27
Use Arc::try_unwrap in Paragraph
...
We use `MaybeUninit` here instead of `Option` to save some cycles, but
I will most likely change it for an `Option` since unsafe code is quite
scary.
2023-09-01 03:59:57 +02:00
Héctor Ramón Jiménez
ce22d661fa
Remove Clone implementation for Paragraph
2023-09-01 03:25:29 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree
2023-08-30 04:31:21 +02:00