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
c0431aedd3
Update wgpu and cosmic-text
2023-04-08 04:47:05 +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
bacbaeed99
Merge branch 'advanced-text' into feature/software-renderer
2023-03-04 05:51:05 +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
5fd5d1cdf8
Implement Canvas support for iced_tiny_skia
2023-03-01 21:34:26 +01:00
Héctor Ramón Jiménez
11b2c3bbe3
Reuse text buffers independently of color in iced_wgpu
2023-02-27 03:41: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
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
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
a970f34cb4
Apply ceil to text bounds when drawing
2023-02-24 13:37:30 +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
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
Héctor Ramón Jiménez
d2825360a7
Load Iced-Icons.ttf font in text::Pipeline::new
2023-02-24 13:29:12 +01:00
Héctor Ramón Jiménez
5a82fc654e
Use floating coordinates directly in text::Pipeline
2023-02-24 13:29:12 +01:00
Héctor Ramón Jiménez
238154af4a
Implement font::load command in iced_native
2023-02-24 13:29:11 +01:00
Héctor Ramón Jiménez
b29de28d1f
Overhaul Font type to allow font family selection
2023-02-24 13:28:24 +01:00
Héctor Ramón Jiménez
a7580e0696
Count layout_runs instead of using visible_lines in text::Pipeline::prepare
2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
0a324f0aeb
Implement hit_test for text::Pipeline in iced_wgpu
2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
c8e8b1a7ba
Use bounds directly for measure in text pipeline
2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
6b70771146
Avoid unnecessary Vec allocation in text pipeline
2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
02fc7e6e89
Trim text render_cache after rendering in iced_wgpu
2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
1d0c44fb25
Implement basic text caching in iced_wgpu
2023-02-24 13:22:57 +01:00
Héctor Ramón Jiménez
bb27982009
Convert sRGB to linear RGB for text in iced_wgpu
2023-02-24 13:20:55 +01:00
Héctor Ramón Jiménez
98a16fd670
Implement proper text alignment support in iced_wgpu
2023-02-24 13:19:49 +01:00
Héctor Ramón Jiménez
ba258f8fbc
Implement support for multiple text layers in iced_wgpu
2023-02-24 13:19:49 +01:00
Héctor Ramón Jiménez
baf51a8fcf
Draft glyphon implementation of text pipeline for iced_wgpu
2023-02-24 13:19:48 +01:00
Héctor Ramón Jiménez
b9a9576207
Remove iced_glow, glyph-brush, and wgpu_glyph dependencies
2023-02-24 13:17:58 +01:00
Poly
15f794b7a8
Address Clippy lints
2022-07-09 17:07:38 +02:00
Vladyslav Nikonov
bdca20fc4a
Experimental wgpu WebGL backend support
...
- Added missing `draw_cache_align_4x4` call for `brush_glyph` on wasm32 target
- Added WebGL support to `integratio_wgpu` example
- Fixed test.yml CI workflow
- Removed spir-v shader in `integration_wgpu`; Fixed formatting
- Removed redundant `BoxStream` typedef
2022-01-28 21:37:14 +07:00
Héctor Ramón Jiménez
c914b2a05b
Use Iterator::min_by instead of fold in hit_test
2021-09-15 15:08:35 +07:00
Héctor Ramón Jiménez
643500bbdf
Use Option to encode empty text case in hit test methods
2021-09-15 14:49:13 +07:00
Héctor Ramón Jiménez
7614127d36
Rename HitTestResult to Hit
...
... and also move it to a new `text` module in `iced_core`
2021-08-26 14:41:33 +07:00
Tom
aa63841e2c
Implement textual hit testing
2021-08-21 10:31:26 -07:00
Héctor Ramón Jiménez
217f5be827
Add text_multithreading to Settings in iced_glow and iced_wgpu
2021-07-22 18:21:50 +07:00
Yusuf Bera Ertan
6469e463cd
feat: expose draw_cache_multithread
2021-06-14 18:06:28 +03:00
anunge
9e453843b2
Touch support for PaneGrid and PickList ( #650 )
...
* touch events properly parsed and converted to logical size, button working
* scrolling with a nice touch
* fixed application state level touch cursor. panel_grid is touchable now.
* format glicthes fixes
* format glitches
* tight format
* fixed pane grid
* fixing with upstream
* Remove unused `touch` module from `iced_core`
* Remove unused `crate::text` import in `iced_native`
* Remove redundant match branch in `iced_winit`
* Keep removed line break in `UserInterface::update`
* Compute `text_size` only when bounds contains cursor in `overlay::menu`
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2021-02-12 20:52:20 +01:00
Héctor Ramón Jiménez
67d90e3946
Update wgpu to 0.6 in iced_wgpu
2020-08-27 13:03:42 +02:00