Commit graph

17 commits

Author SHA1 Message Date
Jovansonlee Cesar
0c502801e3
Make rendering of svg that has text work out of the box (#2560)
* fix: load system fonts to usvg font_db, this will make rendering of text in svg that has it

* feat: add an example that renders svg that has text on it

* Initialize `fontdb` only once for `vector` images

* Remove `svg_text` example

* Set `fontdb` for `usvg::Options` in `tiny_skia::vector`

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-09-13 21:43:00 +00:00
Héctor Ramón
616689ca54
Update cosmic-text and resvg (#2416)
* Update `cosmic-text`, `glyphon`, and `resvg`

* Fix slow font fallback with `Shaping::Basic` in `cosmic-text`

* Update `cosmic-text` and `resvg`

* Update `cosmic-text`

* Fix `SelectAll` action in `editor`

* Fix some panics in `graphics::text::editor`

* Remove empty `if` statement in `tiny_skia::vector`

* Update `cosmic-text`, `glyphon`, and `rustc-hash`
2024-07-17 13:00:00 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg 2024-05-03 13:25:58 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml 2024-04-07 12:42:12 +02: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
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
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
f60884f6f8
Deny broken_intradoc_links and verify documentation in CI 2023-09-09 20:58:45 +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
Ashley Wulber
3f1c8a8d28
fix: tiny-skia svg premultiply final filtered color 2023-05-09 14:57:50 -04: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
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
24c3d20a76
Tell clippy to go learn the borrow rules 2023-03-07 06:34:27 +01:00
Héctor Ramón Jiménez
5b3977daf6
Implement vector pipeline in iced_tiny_skia 2023-03-07 06:09:51 +01:00