Héctor Ramón Jiménez
1b534bda53
Merge branch 'master' into text-editor
2023-10-27 05:27:37 +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
6582387579
Merge branch 'master' into text-editor
2023-10-27 03:58:45 +02:00
Héctor Ramón Jiménez
86b877517f
Update wgpu to 0.18 and cosmic-text to 0.10
2023-10-27 03:24:06 +02:00
Héctor Ramón Jiménez
f137d71e8f
Centralize clippy lints in .cargo/config.toml
2023-09-20 16:40:03 +02:00
Héctor Ramón Jiménez
b8ddd158da
Simplify map call in iced_wgpu::triangle
2023-09-20 16:27:54 +02:00
Héctor Ramón Jiménez
b277625546
Revert "Chore: Apply clippy map transformations"
...
This reverts commit c997aad85d .
2023-09-20 16:26:43 +02:00
Héctor Ramón Jiménez
14ba939e67
Fix clippy::unreadable_literal
2023-09-20 05:19:24 +02:00
Héctor Ramón Jiménez
caed50b277
Fix clippy::match-wildcard-for-single-variants
2023-09-20 05:03:25 +02:00
Héctor Ramón Jiménez
42ed90bc6f
Fix clippy::default_trait_access
2023-09-20 04:51:08 +02:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned
2023-09-20 04:11:52 +02:00
Héctor Ramón Jiménez
be340a8cd8
Fix gamma correction for colored glyphs in iced_wgpu
2023-09-19 23:00:20 +02:00
Héctor Ramón
582da10ae2
Merge pull request #2090 from nyurik/mapping
...
Chore: Apply clippy map transformations
2023-09-19 13:22:21 +02:00
Yuri Astrakhan
c997aad85d
Chore: Apply clippy map transformations
...
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
2023-09-19 01:46:46 -04:00
Yuri Astrakhan
3d6b9637c3
Chore: Inline format args for ease of reading
...
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
2023-09-19 01:32:56 -04: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
6448429103
Draft Editor API and TextEditor widget
2023-09-12 14:51:00 +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
b8e5693a30
Merge branch 'master' into explicit-text-caching
2023-09-10 00:34:21 +02:00
Héctor Ramón Jiménez
f60884f6f8
Deny broken_intradoc_links and verify documentation in CI
2023-09-09 20:58:45 +02:00
Matthias Vogelgesang
89d9f1d7d2
Fix majority of unresolved documentation links
2023-09-09 18:59:17 +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
10d0b257f9
Use Oklab color interpolation only with color::GAMMA_CORRECTION
2023-09-07 07:48:43 +02:00
Matthias Vogelgesang
181708a1c0
Compute gradients in Oklab color space
2023-09-07 07:45:42 +02:00
Héctor Ramón
b5e7fb240c
Merge pull request #2070 from ripytide/master
...
Added a Frame::scale_nonuniform method
2023-09-07 06:03:41 +02:00
Héctor Ramón
d82c8b59e6
Merge pull request #2071 from Davidster/wgpu_webgpu_support
...
use @interpolate(flat) attribute as per the WebGPU spec
2023-09-07 05:53:50 +02:00
Héctor Ramón Jiménez
09965b686e
Make scale methods in Frame generic over f32 and Vector
2023-09-07 05:51:39 +02:00
Héctor Ramón Jiménez
1f263051b6
Implement scale in terms of scale_nonuniform
2023-09-07 05:45:51 +02:00
Héctor Ramón Jiménez
87800095e2
Remove unnecessary interpolate(flat) in quad.wgsl
2023-09-07 05:43:03 +02:00
ripytide
5371fae21a
added a Frame::scale_nonuniform method
2023-09-05 10:49:50 +01:00
Josh Megnauth
bdf18554fe
Check LineHeight > 0.0 before allocating text
2023-09-04 23:47:44 -04:00
Josh Megnauth
ef429fbea6
Ensure LineHeight > 0.0 for the WGPU renderer
2023-09-04 02:58:54 -04:00
David Huculak
76cec1b1fd
use @interpolate(flat) attribute as per the WebGPU spec:
...
User-defined vertex outputs and fragment inputs of scalar or vector integer type must always be specified as @interpolate(flat)
https://www.w3.org/TR/WGSL/#interpolation
2023-09-03 19:32:38 -04:00
Héctor Ramón Jiménez
8129e2c208
Implement draw_paragraph in iced_tiny_skia
2023-09-03 08:08:27 +02:00
Héctor Ramón Jiménez
9b9b37e6f8
Fix adapter selection loop in iced_wgpu
2023-09-03 01:14:22 +02:00
Héctor Ramón Jiménez
0b28080d3e
Remove redundant into_iter call in iced_wgpu
2023-09-03 01:05:17 +02:00
Héctor Ramón Jiménez
020fb3c377
Fix iced_wgpu device selection on Wasm
2023-09-03 01:04:23 +02:00
Héctor Ramón Jiménez
89acf0217e
Use min_bounds for cached text
2023-08-30 05:06:08 +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
lufte
e86363837d
Make the style attribute available on Font
2023-08-18 18:46:22 -03:00
Héctor Ramón Jiménez
a7609a723f
Avoid empty overlay layer in iced_wgpu
2023-08-02 22:08:14 +02:00
Héctor Ramón Jiménez
c7e17391c5
Fix iced_wgpu freezing on empty layers
...
The `render` method would return when an empty layer is encountered without explicitly dropping the `RenderPass` (necessary because we use `ManuallyDrop`), which would then leak memory and freeze `wgpu` until the surface was recreated.
2023-08-02 22:05:11 +02:00
Héctor Ramón Jiménez
126aef88e7
Bump versions 🎉
2023-07-28 19:48:39 +02:00
Héctor Ramón Jiménez
95ff96f71f
Update cosmic-text and glyphon
2023-07-20 20:47:38 +02:00
Héctor Ramón Jiménez
6502cf1111
Improve code style in vector modules
2023-07-12 09:07:20 +02:00
Alec Deason
af386fd0a3
Upgrade resvg to 0.34 and tiny_skia to 0.10
2023-07-12 08:59:07 +02:00
Héctor Ramón Jiménez
d666e739cd
Trim text measurements only before layout
2023-06-29 18:23:11 +02:00
Héctor Ramón Jiménez
98febd9a42
Introduce Mode for text::Cache and trim only when switching modes
2023-06-29 17:54:54 +02:00
Héctor Ramón Jiménez
6921564c9f
Write missing docs in iced_graphics and iced_wgpu
2023-06-29 07:55:52 +02:00
Héctor Ramón Jiménez
fa5650cfd1
Decouple Mesh primitives from main Primitive type
2023-06-29 07:48:03 +02:00