Héctor Ramón Jiménez
6bf6fc60c9
Update cosmic-text to 0.14
2025-04-09 18:40:38 +02:00
Héctor Ramón Jiménez
0e4a392731
Introduce text::Alignment with Justified support
2025-03-11 02:30:50 +01:00
Héctor Ramón Jiménez
2eb5770b1d
Add TODO to align function in text::paragraph
2025-03-11 00:58:15 +01:00
Héctor Ramón Jiménez
179a34d37b
Fix horizontal text alignment
2025-03-11 00:43:51 +01:00
Héctor Ramón Jiménez
201245a85d
Update cosmic-text to 0.13
2025-03-10 19:54:04 +01:00
Héctor Ramón Jiménez
7979125ed7
Simplify InputMethod API with only two states
...
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
Co-authored-by: KENZ <KENZ.gelsoft@gmail.com>
2025-02-12 08:46:35 +01:00
Héctor Ramón Jiménez
87165ccd29
Introduce LineEnding to editor and fix inconsistencies
2025-01-28 06:23:38 +01:00
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
529c459c56
Remove unnecessary buffer_mut_from_editor call
2024-09-04 21:28:44 +02: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
e9e06c8fe2
Add placeholder support to text_editor widget
2024-07-24 14:52:01 +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
PgBiel
76f5bc2cce
add SelectAll to TextEditor
2024-07-08 01:16:31 +02:00
Héctor Ramón Jiménez
6c1027af8d
Fix text_editor always capturing scroll events
2024-06-17 03:37:00 +02:00
Héctor Ramón Jiménez
3762c0590c
Fix panic when scrolling a TextEditor inside a scrollable
2024-04-26 15:17:10 +02:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml
2024-04-07 12:42:12 +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
faa53647cc
Replace xxhash-rust with rustc-hash
2024-03-30 15:57:50 +01:00
Héctor Ramón Jiménez
2ba73b0faf
Fix wrapped lines not being considered when measuring TextEditor
2024-02-07 21:48:28 +01: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
dtzxporter
98e088e731
Migrate twox-hash -> xxhash_rust. Switch to Xxh3 for better performance.
...
xxhash-rust is more maintained, built against `::core`, so no workaround for wasm is necessary. Switch to Xxh3 for better performance, which shows when loading/hashing image buffers.
2023-11-11 03:40:22 +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
4e757a26d0
Implement Scroll action in text::editor
2023-09-19 01:18:06 +02:00
Héctor Ramón Jiménez
e7326f0af6
Flesh out the editor example a bit more
2023-09-18 19:07:41 +02:00
Héctor Ramón Jiménez
61ef8f3249
Update version properly when FontSystem changes in text::editor
2023-09-18 13:58:55 +02:00
Héctor Ramón Jiménez
b5466f41ca
Fix inconsistent expect messages in text::editor
2023-09-18 13:58:39 +02:00
Héctor Ramón Jiménez
a01b123cec
Shape as needed only in update during layout
2023-09-18 13:57:47 +02:00
Héctor Ramón Jiménez
d1440ceca6
Find correct last_visible_line in Editor::highlight
2023-09-18 13:39:47 +02:00
Héctor Ramón Jiménez
86d396cf8b
Avoid adding unnecessary spans when syntax highlighting
2023-09-17 23:15:38 +02:00
Héctor Ramón Jiménez
2897986f2d
Notify Highlighter of topmost line change
2023-09-17 19:27:51 +02:00
Héctor Ramón Jiménez
23d00445ff
Use saturating_sub for last_visible_line in text::Editor
2023-09-17 19:06:20 +02:00
Héctor Ramón Jiménez
d3011992a7
Implement basic syntax highlighting with syntect in editor example
2023-09-17 19:04:23 +02:00
Héctor Ramón Jiménez
76dc82e8e8
Draft Highlighter API
2023-09-17 15:29:14 +02:00
Héctor Ramón Jiménez
c9dbccba46
Use fork of cosmic-text with some minor fixes
2023-09-16 16:27:02 +02:00
Héctor Ramón Jiménez
d051f21597
Implement Copy and Paste actions for text::Editor
2023-09-16 15:40:16 +02:00
Héctor Ramón Jiménez
c6d0443627
Implement methods to query the contents of a TextEditor
2023-09-16 15:27:25 +02:00
Héctor Ramón Jiménez
3afac11784
Remove min_bounds field in graphics::text::Editor
2023-09-14 18:58:52 +02:00
Héctor Ramón Jiménez
c7d02e24e6
Remove Editor::min_bounds and use bounds instead
2023-09-14 18:57:09 +02:00
Héctor Ramón Jiménez
8cad1d682a
Implement Action::SelectLine in text::Editor
2023-09-14 15:23:20 +02:00
Héctor Ramón Jiménez
f7d66899f1
Implement Action::SelectWord in text::Editor
2023-09-14 15:20:23 +02:00
Héctor Ramón Jiménez
edd5918475
Implement motion selection in text::Editor
2023-09-14 14:25:46 +02:00