Commit graph

57 commits

Author SHA1 Message Date
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
8129e2c208
Implement draw_paragraph in iced_tiny_skia 2023-09-03 08:08:27 +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
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
fa5650cfd1
Decouple Mesh primitives from main Primitive type 2023-06-29 07:48:03 +02:00
Héctor Ramón Jiménez
0ae1baa37b
Introduce custom backend-specific primitives 2023-06-29 07:18:20 +02:00
Héctor Ramón Jiménez
78ad365db2
Reuse entries in text::Cache in iced_wgpu 2023-06-28 00:35:37 +02:00
Héctor Ramón
f63a9d1a79
Merge pull request #1843 from wash2/fix-tiny-skia-quad
fix: quad rendering including border only inside of the bounds
2023-06-27 22:19:49 +02:00
Héctor Ramón Jiménez
2f886b0e4e
Fix import consistency in iced_tiny_skia 2023-06-27 22:06:32 +02:00
Héctor Ramón Jiménez
bf7d636ebf
Draw border path for quad only if it has a border in iced_tiny_skia 2023-06-27 22:05:49 +02:00
Héctor Ramón Jiménez
5bc7cbf5bc
Use subpixel glyph positioning and layout linearity
... for offsetting and scaling text
2023-06-20 06:50:36 +02:00
Héctor Ramón
cc5d11f1a6
Merge pull request #1846 from bungoboingo/feat/background-gradients
[Feature] Gradients for Backgrounds
2023-05-19 04:37:58 +02:00
Héctor Ramón Jiménez
ccf7d1994f
Fix needless borrow in tiny_skia::backend 2023-05-19 04:05:31 +02:00
Héctor Ramón Jiménez
49353bc4ea
Inline into_gradient in tiny_skia::backend
... since it's not really reused anywhere else.
2023-05-19 03:53:23 +02:00
Héctor Ramón Jiménez
4c1a082f04
Remove Builder abstractions for gradients 2023-05-19 03:32:21 +02:00
Ashley Wulber
a3f32ad201
fix: when clearing damaged surface with background color blend mode should be Source only 2023-05-15 13:40:52 -04:00
Ashley Wulber
102c78abd8
fix: tiny-skia quad handle case where border_radius < border_width / 2.0 2023-05-11 19:21:36 -04:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations. 2023-05-11 11:13:44 -07:00
Ashley Wulber
5ee26cc8ec
fix: don't offset fill of quad 2023-05-11 12:25:43 -04:00
Ashley Wulber
46fc5a7992
fix: quad rendering including border only inside of the bounds 2023-05-10 17:48:21 -04:00
Ashley Wulber
75439ff96e
fix: border radius typo 2023-05-09 16:37:01 -04:00
Héctor Ramón Jiménez
2bc4880d00
Warn about unsupported primitives in iced_tiny_skia 2023-05-08 14:51:06 +02:00
Héctor Ramón Jiménez
9499a8f9e6
Support configurable LineHeight in text widgets 2023-05-04 18:39:31 +02:00
Héctor Ramón Jiménez
4bd290afe7
Introduce text::Shaping enum and replace magic boolean 2023-05-02 01:02:32 +02:00
Héctor Ramón Jiménez
33b5a90019
Make basic text shaping the default shaping strategy 2023-05-02 01:02:13 +02:00
Héctor Ramón Jiménez
af0303f95e
Move damage tracking logic to compositor in iced_tiny_skia 2023-04-27 15:10:41 +02:00
Héctor Ramón Jiménez
9c63eb7df5
Update tiny-skia and resvg 2023-04-26 16:46:27 +02:00
Héctor Ramón Jiménez
f0fa5f76cb
Remove debug overlay from iced_tiny_skia for now 2023-04-26 16:15:53 +02:00
Héctor Ramón Jiménez
e134a82f4c
Switch debug mode to fade old primitives and display damage in iced_tiny_skia 2023-04-05 18:42:27 +02:00
Héctor Ramón Jiménez
4ede482ab5
Present new frame only when damaged in iced_tiny_skia 2023-04-05 18:41:40 +02:00
Héctor Ramón Jiménez
1bba9a080f
Fix Svg and Image primitives in iced_tiny_skia 2023-04-05 05:49:30 +02:00
Héctor Ramón Jiménez
f8cd1faa28
Group damage regions by area increase 2023-04-05 05:40:44 +02:00
Héctor Ramón Jiménez
6270c33ed9
Keep playing with incremental rendering (still very slow) 2023-04-04 20:47:53 +02:00
Héctor Ramón Jiménez
0f7abffc0e
Draft (very) basic incremental rendering for iced_tiny_skia 2023-04-04 02:08:02 +02:00
Héctor Ramón Jiménez
707de9d788
Introduce support for Font attributes 2023-03-30 00:56:00 +02:00
Héctor Ramón Jiménez
c8f637fc16
Fix panic rendering an out of bounds clip in iced_tiny_skia 2023-03-17 19:35:57 +01:00
Héctor Ramón Jiménez
424ac81773
Implement color filter support for Primitive::Svg in iced_tiny_skia 2023-03-09 04:48:35 +01:00
Héctor Ramón Jiménez
a8d55ceb82
Trim raster cache in iced_tiny_skia 2023-03-07 06:15:05 +01:00
Héctor Ramón Jiménez
5b3977daf6
Implement vector pipeline in iced_tiny_skia 2023-03-07 06:09:51 +01:00
Héctor Ramón Jiménez
bb49e17cab
Implement raster pipeline in iced_tiny_skia 2023-03-07 05:06:26 +01:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase 2023-03-04 05:37:11 +01:00
Héctor Ramón Jiménez
6cc48b5c62
Move Canvas and QRCode to iced crate
Rename `canvas` modules to `geometry` in graphics subcrates
2023-03-03 04:57:55 +01:00
Héctor Ramón Jiménez
d13d19ba35
Rename canvas::frame to canvas in iced_wgpu 2023-03-03 04:00:44 +01:00
Héctor Ramón Jiménez
868f79d22e
Reuse ClipMask in iced_tiny_skia 2023-03-02 00:40:36 +01:00
Héctor Ramón Jiménez
5c0427edbb
Fix Clip primitive translation in iced_tiny_skia 2023-03-01 21:41:32 +01:00
Héctor Ramón Jiménez
5fd5d1cdf8
Implement Canvas support for iced_tiny_skia 2023-03-01 21:34:26 +01:00
Héctor Ramón Jiménez
3105ad2e00
Remove useless f32 conversion in iced_tiny_skia 2023-02-27 03:04:05 +01:00
Héctor Ramón Jiménez
8750d83337
Short-circuit rectangle path building in iced_tiny_skia 2023-02-27 03:02:13 +01:00
Héctor Ramón Jiménez
37ce30f360
Use kurbo to approximate arcs in iced_tiny_skia 2023-02-27 02:58:02 +01:00