Commit graph

223 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
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
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
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 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
6fc88c3c80
Merge pull request #2059 from joshuamegnauth54/ensure_nonzero_text_lineheight
[issue #2002] Ensure that absolute `LineHeight` is always > 0.0
2023-09-07 03:49:44 +02:00
Josh Megnauth
cee0ed6469
Use the correct text size and height in tiny_skia 2023-09-05 20:45:27 -04: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
20681b4777
Ensure LineHeight is always > 0.0 for tiny skia. 2023-09-04 21:03:16 -04:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Héctor Ramón Jiménez
1a1da6a1f0
Remove unnecessary mutable reference in iced_tiny_skia 2023-09-03 08:11:36 +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
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
Héctor Ramón Jiménez
36120d5685
Run cargo fmt with Rust 1.72 2023-08-26 01:31:11 +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
126aef88e7
Bump versions 🎉 2023-07-28 19:48:39 +02:00
Bingus
d53ccc857d
refactored window storage;
new helper window events (Destroyed, Created);
clippy + fmt;
2023-07-21 13:53:38 -07: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
5dd923402e
Update resvg dependency to 0.35 2023-07-12 09:10:58 +02:00
Héctor Ramón Jiménez
6502cf1111
Improve code style in vector modules 2023-07-12 09:07:20 +02:00
Héctor Ramón Jiménez
9f73ee3206
Fix import consistency for bytemuck 2023-07-12 09:03:24 +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
00859c25f5
Retain text measurements as long as original entries 2023-06-28 01:27:09 +02:00
Héctor Ramón Jiménez
975eebfc62
Retain measurements for text entries even if not directly used 2023-06-28 00:51:40 +02:00
Héctor Ramón Jiménez
c8d79a5cd9
Fix needless borrow in iced_wgpu and iced_tiny_skia 2023-06-28 00:45:41 +02:00
Héctor Ramón Jiménez
73dca5e323
Reuse entries in text::Cache in iced_tiny_skia 2023-06-28 00:44:23 +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
f6966268bb
Merge pull request #1845 from bungoboingo/feat/offscreen-rendering
Feat: Offscreen Rendering & Screenshots
2023-06-27 20:37:19 +02:00
Héctor Ramón
ef18ecf4ef
Merge pull request #1921 from iced-rs/subpixel-glyph-positioning
Subpixel glyph positioning and layout linearity
2023-06-26 19:17:34 +02:00
Cory Forsstrom
8152513bf8
Provide access to font from each crate 2023-06-22 20:18:38 -07:00
Héctor Ramón Jiménez
ef87ff1e8a
Clear text caches after a font is loaded 2023-06-21 21:47:29 +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 Jiménez
0c65936664
Update glyphon and cosmic-text 2023-06-16 15:50:03 +02:00
Bingus
233196eb14
Added offscreen rendering support for wgpu & tiny-skia exposed with the window::screenshot command. 2023-06-06 15:37:30 +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