Commit graph

24 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
bffe572a04
Fix text wrapping for rich_text 2025-01-10 23:36:45 +01:00
Konsl
664caf7087
Apply wrapping to paragraphs 2025-01-07 00:30:14 +01:00
Héctor Ramón Jiménez
f98328f4f1
Add text::Wrapping support
Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
2024-09-04 21:26:47 +02:00
Héctor Ramón Jiménez
2e4c55bbff
Use for loop instead of fold in span_bounds 2024-07-28 14:17:59 +02:00
Cory Forsstrom
ddcf02f9d0
Add background styling to span / rich text 2024-07-28 13:06:57 +02:00
Héctor Ramón Jiménez
54500e61ed
Simplify font attributes in Paragraph::with_spans 2024-07-21 13:01:27 +02:00
Héctor Ramón Jiménez
9bfaf2840c
Add Link support to rich_text widget 2024-07-21 12:45:05 +02:00
Héctor Ramón Jiménez
910eb72a06
Implement rich_text widget and markdown example 2024-07-17 22:04:11 +02:00
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