Commit graph

39 commits

Author SHA1 Message Date
Josh Megnauth
cee0ed6469
Use the correct text size and height in tiny_skia 2023-09-05 20:45:27 -04: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
lufte
e86363837d Make the style attribute available on Font 2023-08-18 18:46:22 -03: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
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
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
c6d9221ee4
Round paragraph position until we implement subpixel glyph positioning 2023-05-08 16:20:05 +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
edf3432bf5
Update glyphon and cosmic-text 2023-05-02 01:02:33 +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
9c63eb7df5
Update tiny-skia and resvg 2023-04-26 16:46:27 +02:00
Héctor Ramón Jiménez
3ee367355d
Merge branch 'advanced-text' into incremental-rendering 2023-04-08 04:47:54 +02:00
Héctor Ramón Jiménez
c0431aedd3
Update wgpu and cosmic-text 2023-04-08 04:47:05 +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
0b459c8e24
Introduce font::Stretch 2023-03-30 02:01:20 +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
5f9e7f6cb9
Update cosmic-text to latest 🎉 2023-03-19 14:52:30 +01:00
Héctor Ramón Jiménez
ea50ec8df1
Trim text Buffer cache every frame in iced_wgpu and iced_tiny_skia 2023-03-17 19:58:42 +01:00
Héctor Ramón Jiménez
0850f52d8c
Use ceil to avoid cut text in iced_tiny_skia
This won't be necessary once we reuse the buffers from layouting by
leveraging layout linearity.
2023-03-07 06:23:09 +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
99e0a71504
Rename iced_native to iced_runtime 2023-03-05 06:35:20 +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
fd06de5d9c
Use get_image_uncached in iced_tiny_skia
... since we are not reusing the `SwashCache`
2023-02-28 03:48:34 +01:00
Héctor Ramón Jiménez
151daf95b7
Remove unnecessary cast_slice in iced_tiny_skia 2023-02-27 16:30:54 +01:00
Héctor Ramón Jiménez
c1ff803b8f
Implement basic glyph cache in iced_tiny_skia 2023-02-27 16:28:19 +01:00
Héctor Ramón Jiménez
4e615a65ca
Fix clippy lints 2023-02-27 01:12:06 +01:00
Héctor Ramón Jiménez
4067c427db
Fix glyphs with color mask in iced_tiny_skia 2023-02-26 23:49:58 +01:00
Héctor Ramón Jiménez
3386402f5a
Implement text alignment support in iced_tiny_skia 2023-02-26 23:44:50 +01:00
Héctor Ramón Jiménez
64fb722dfe
Draft text support in iced_tiny_skia 2023-02-26 23:40:17 +01:00