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
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
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