Héctor Ramón Jiménez
c6cf2bc521
Fix clipping of text in iced_tiny_skia
2024-02-11 04:03:01 +01:00
Mohammad AlSaleh
5bd93181f3
tiny_skia: Add a capacity limit to GlyphCache
...
* Trim the cache if `recently_used` size reaches the limit, even if a
trim interval hasn't passed.
* Shrink `entries` and `recently_used` to the limit when trimming.
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-02-07 14:27:35 +01:00
Héctor Ramón Jiménez
f4d6648601
Introduce with_transformation to Renderer trait
2024-02-02 02:24:45 +01:00
Héctor Ramón Jiménez
a6e91d13d5
Allow only uniform scaling in Transformation
2024-02-02 01:57:03 +01:00
Héctor Ramón Jiménez
5467c19c80
Replace Primitive::Translate with Transform
2024-02-02 01:53:23 +01:00
Josh Megnauth
cdc42d6464
Assert dimensions of quads are normal in iced_tiny_skia
2024-01-31 21:06:20 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type
2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
25f182f933
Introduce Border struct analogous to Shadow
2024-01-20 13:29:25 +01:00
Héctor Ramón Jiménez
4d502012b3
Skip transparent shadows in iced_tiny_skia
2024-01-20 12:39:52 +01:00
Héctor Ramón Jiménez
370b2f6df7
Use Default implementation of renderer::Quad
2024-01-20 12:25:07 +01:00
Héctor Ramón Jiménez
b7b457a575
Make shadow optional in renderer::Quad
2024-01-20 12:11:18 +01:00
Nick Senger
cc906c83cd
feat: quad shadows
2024-01-20 11:59:37 +01:00
Héctor Ramón Jiménez
c929e6f5dd
Use Self::Surface in Compositor implementors
2024-01-18 10:56:02 +01:00
Héctor Ramón Jiménez
3cf8f77d65
Resize surface in configure_surface in iced_tiny_skia
2024-01-18 10:52:25 +01:00
Héctor Ramón Jiménez
150ce65e20
Nest age declaration inside last_primitives
2024-01-18 10:43:52 +01:00
Héctor Ramón Jiménez
b6b3e9b9f9
Avoid stacking new primitives when undamaged
2024-01-18 10:42:02 +01:00
Héctor Ramón Jiménez
4b7744b980
Support out-of-order Buffer ages in iced_tiny_skia
2024-01-18 10:35:27 +01:00
Héctor Ramón Jiménez
5fc49edc55
Make compatible_window mandatory in Compositor
2024-01-18 10:06:30 +01:00
Héctor Ramón Jiménez
8bf2386972
Remove Compositor window generic
...
And update `glyphon` and `window_clipboard`
2024-01-18 09:55:27 +01:00
Ian Douglas Scott
7289b6091b
WIP raw-window-handle 0.6
2024-01-16 21:34:38 -08:00
Ian Douglas Scott
ff268c8c42
Update to softbuffer 0.3, tracking up to age sets of primitives
2024-01-17 07:46:33 -08:00
Héctor Ramón Jiménez
5d4c55c07a
Fix paint not being transformed in iced_tiny_skia
2024-01-17 15:53:08 +01:00
Héctor Ramón Jiménez
acee3b030b
Fix paths with negative coordinates in iced_tiny_skia
2024-01-17 15:31:29 +01:00
Héctor Ramón Jiménez
4cb53a6e22
Implement vectorial text support for iced_tiny_skia
2024-01-17 14:49:14 +01:00
Héctor Ramón Jiménez
5aa741a177
Apply scaling during Frame::fill_text in iced_tiny_skia
2024-01-17 13:27:39 +01:00
Héctor Ramón Jiménez
d948ca6f09
Update glyphon to 0.4
...
`Color` is now always in the sRGB color space.
2024-01-15 23:49:20 +01:00
Héctor Ramón
a5ae442819
Merge pull request #2158 from iced-rs/feature/raw-text-primitive
...
Introduce `RawText` to `Primitive` in `iced_graphics`
2024-01-12 06:45:40 +01:00
Héctor Ramón Jiménez
bb30b137d8
Fix expect message in iced_tiny_skia::vector
2023-12-11 10:47:17 +01:00
Héctor Ramón Jiménez
603832e66c
Introduce RawText to Primitive in iced_graphics
...
This should allow users to directly render a
`cosmic_text::Buffer`.
2023-12-05 02:19:17 +01:00
Héctor Ramón
fc285d3e46
Merge pull request #1964 from bungoboingo/feat/multi-window-support
...
[Feature] 🪟 Multi Window 🪟 .. redux!
2023-12-05 01:03:09 +01:00
Héctor Ramón Jiménez
b152ecda63
Separate Compositor::new from Compositor::create_renderer
2023-12-02 20:49:47 +01:00
Héctor Ramón Jiménez
b526ce4958
Rename viewport to clip_bounds
2023-12-02 15:56:28 +01:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds
2023-12-01 16:04:27 +01:00
Héctor Ramón Jiménez
e09b4e24dd
Merge branch 'master' into feat/multi-window-support
2023-11-29 22:28:31 +01:00
Héctor Ramón Jiménez
a5125d6fea
Refactor texture image filtering
...
- Support only `Linear` or `Nearest`
- Simplify `Layer` groups
- Move `FilterMethod` to `Image` and `image::Viewer`
2023-11-11 07:22:51 +01:00
Remmirad
4b32a48880
Fix clippy + fmt
2023-11-11 07:21:51 +01:00
Remmirad
5759096a4c
Implement texture filtering options
2023-11-11 07:21:51 +01:00
Héctor Ramón
3408ab111f
Merge pull request #1908 from alec-deason/bug/convert_text
...
Run convert_text on svg trees so text renders correctly
2023-11-11 04:16:17 +01:00
Héctor Ramón Jiménez
2aaaf2cd0c
Call convert_text on svg node before rendering
...
`tiny-skia` does not support text rendering, so we
convert the text nodes to path nodes prior to that.
2023-11-11 04:03:25 +01:00
dtzxporter
98e088e731
Migrate twox-hash -> xxhash_rust. Switch to Xxh3 for better performance.
...
xxhash-rust is more maintained, built against `::core`, so no workaround for wasm is necessary. Switch to Xxh3 for better performance, which shows when loading/hashing image buffers.
2023-11-11 03:40:22 +01: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
f137d71e8f
Centralize clippy lints in .cargo/config.toml
2023-09-20 16:40:03 +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
42ed90bc6f
Fix clippy::default_trait_access
2023-09-20 04:51:08 +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 Jiménez
9af0a27e67
Draw colored glyphs in iced_tiny_skia
2023-09-19 22:28:28 +02:00
Héctor Ramón
e8b01eb543
Merge pull request #2092 from nyurik/clippy
...
Chore: Apply some minor clippy fixes
2023-09-19 13:30:51 +02:00
Yuri Astrakhan
efd0ff6ded
Chore: Apply some minor clippy fixes
...
* Use `.elapsed()` for duration
* Use direct iteration without calling `.iter()` and the like
* order fields in the `Text` struct creation as declared
2023-09-19 01:52:25 -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