Commit graph

3380 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
744f3028f4
Use Surface::buffer directly for drawing in iced_tiny_skia
... with a nice little color trick :^)
2023-02-26 00:50:25 +01:00
Héctor Ramón Jiménez
df5d66423d
Draft support for Quad and Clip primitives in iced_tiny_skia 2023-02-26 00:38:46 +01:00
Héctor Ramón Jiménez
5f93437285
Bump version of iced_core 🎉 2023-02-25 21:43:53 +01:00
Héctor Ramón
be8102ea3b
Merge pull request #1734 from iced-rs/fix/padding-fit
Fix `Padding::fit` on irregular values for an axis
2023-02-25 21:43:32 +01:00
Héctor Ramón Jiménez
871b7e0311
Fix Padding::fit on irregular values for an axis 2023-02-25 21:28:21 +01:00
Héctor Ramón Jiménez
445b31c6c5
Resize Surface::buffer instead of reallocating in iced_tiny_skia 2023-02-25 21:06:58 +01:00
Héctor Ramón Jiménez
535d7a4d57
Implement basic presentation with softbuffer for iced_tiny_skia 2023-02-25 16:05:42 +01:00
Héctor Ramón Jiménez
8c373cd497
Scaffold iced_tiny_skia and connect it to iced_renderer 2023-02-25 15:38:25 +01:00
Héctor Ramón
f07fdba0b1
Merge pull request #1733 from iced-rs/update/svg-deps
Update `resvg` in `iced_graphics`
2023-02-25 15:17:46 +01:00
Héctor Ramón Jiménez
a01bc865a0
Trim measurements in renderer::Backend 2023-02-25 15:11:35 +01:00
Héctor Ramón Jiménez
27e21a83f7
Merge branch 'update/svg-deps' into feature/software-renderer 2023-02-25 15:07:19 +01:00
Héctor Ramón Jiménez
1475f5fa58
Update resvg in iced_graphics 2023-02-25 15:04:40 +01:00
Héctor Ramón Jiménez
5100b5d0a1
Introduce iced_renderer subcrate featuring runtime renderer fallback 2023-02-24 23:24:48 +01:00
Héctor Ramón
368cadd25a
Merge pull request #1697 from iced-rs/text-glyphon
Text shaping, font fallback, and `iced_wgpu` overhaul
2023-02-24 20:52:10 +01:00
Héctor Ramón Jiménez
8059c40142
Fix clippy lints 2023-02-24 13:58:17 +01:00
Héctor Ramón Jiménez
700262e05c
Fix checkbox example 2023-02-24 13:56:37 +01:00
Héctor Ramón Jiménez
b2c87cdd23
Make iced_wgpu a mandatory dependency 2023-02-24 13:39:38 +01:00
Héctor Ramón Jiménez
a0597471b8
Remove iced_glutin and iced_glow leftovers 2023-02-24 13:38:18 +01:00
Héctor Ramón Jiménez
26e902f7d8
Compute grapheme index in find_cursor_position for TextInput 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
51844c5d0c
Trim Cache every 300 frames in text::Pipeline 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
17a4d817c4
Collapse conditional and please clippy 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
2097a56b58
Provide some margin to static buffers when growing 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
0715d7d0c7
Update glyphon in iced_wgpu 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
05c787c2ef
Grow atlas in text::Pipeline when necessary 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
ddbf93a82f
Set scissoring properly in text::Pipeline 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
21886d7e9c
Use my GitHub fork of glyphon 2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
730d6a0756
Reuse a RenderPass as much as possible in iced_wgpu 2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
b8c1809ea1
Refactor triangle::Pipeline into prepare and render architecture
And get rid of the staging belt! 🎉
2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
23ed352e83
Fix needless borrows in image::Pipeline 2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
363966ee9e
Refactor image::Pipeline into prepare and render architecture 2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
34c963f7b3
Remove unnecessary borrow in quad::Pipeline 2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
77b59496b0
Fix rendering order for quad::Pipeline 2023-02-24 13:37:30 +01:00
Héctor Ramón Jiménez
a970f34cb4
Apply ceil to text bounds when drawing 2023-02-24 13:37:30 +01:00
Héctor Ramón Jiménez
680ea5dcca
Refactor quad::Pipeline to prepare and render architecture 2023-02-24 13:37:30 +01:00
Héctor Ramón Jiménez
c8befa8d95
Fix useless f32 conversions and please clippy 2023-02-24 13:37:29 +01:00
Héctor Ramón Jiménez
7d4c63d411
Set Attrs::monospaced if Font::Monospace is selected 2023-02-24 13:36:03 +01:00
Héctor Ramón Jiménez
dd80772da9
Set a minimum height for Buffer of size * 1.2
This avoids text from misteriously disappearing, even if the user uses a
`height` that isn't enough to fit the text.
2023-02-24 13:36:03 +01:00
Héctor Ramón Jiménez
15d257a52a
Stop truncating the renderers in text::Pipeline
We avoid recreating buffers this way, and the amount of layers should
stay relatively low anyways.
2023-02-24 13:36:02 +01:00
Héctor Ramón Jiménez
f37b87fbab
Avoid allocating text_areas in text::Pipeline 2023-02-24 13:36:02 +01:00
Héctor Ramón Jiménez
6cf4a10906
Stop reusing SwashCache in text::Pipeline
`SwashCache` can't be easily trimmed and it's not really getting us
anything since `glyphon` already caches using a glyph atlas anyways.
2023-02-24 13:36:02 +01:00
Héctor Ramón Jiménez
32309f0140
Introduce Weight enum to font 2023-02-24 13:36:02 +01:00
Héctor Ramón Jiménez
eb3cd3a321
Fix overlay::Menu line height 2023-02-24 13:36:01 +01:00
Héctor Ramón Jiménez
a2ab9e9395
Use Pixels for Text::size 2023-02-24 13:34:59 +01:00
Héctor Ramón Jiménez
de7fc637cf
Fix test workflow 2023-02-24 13:31:20 +01:00
Héctor Ramón Jiménez
b4dd9b6d93
Update glyphon fork (sRGB support) 2023-02-24 13:31:19 +01:00
Héctor Ramón Jiménez
da4182099d
Disable std feature for twox-hash to fix Wasm build 2023-02-24 13:31:19 +01:00
Héctor Ramón Jiménez
17470bf7d3
Fix clippy lints 🎉 2023-02-24 13:31:19 +01:00