summaryrefslogtreecommitdiffstats
path: root/graphics/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2023-10-27 03:41:16 +0200
committerLibravatar GitHub <noreply@github.com>2023-10-27 03:41:16 +0200
commit8e6f131a06e7d798c535a0a45996c62dbc1d56c0 (patch)
tree8a075bfafa53c9e15ba19f4e21434c929ffb9281 /graphics/src
parentf1b1344d59fa7354615f560bd25ed01ad0c9f865 (diff)
parenta00ebcde3d698bc6b59a7a258e91c3612a6faaaf (diff)
downloadiced-8e6f131a06e7d798c535a0a45996c62dbc1d56c0.tar.gz
iced-8e6f131a06e7d798c535a0a45996c62dbc1d56c0.tar.bz2
iced-8e6f131a06e7d798c535a0a45996c62dbc1d56c0.zip
Merge pull request #2122 from iced-rs/update-wgpu
Update `wgpu` to `0.18` and `cosmic-text` to `0.10`
Diffstat (limited to 'graphics/src')
-rw-r--r--graphics/src/text.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/graphics/src/text.rs b/graphics/src/text.rs
index bc06aa3c..a7d52645 100644
--- a/graphics/src/text.rs
+++ b/graphics/src/text.rs
@@ -22,12 +22,11 @@ pub struct FontSystem {
impl FontSystem {
pub fn new() -> Self {
FontSystem {
- raw: RwLock::new(cosmic_text::FontSystem::new_with_fonts(
- [cosmic_text::fontdb::Source::Binary(Arc::new(
+ raw: RwLock::new(cosmic_text::FontSystem::new_with_fonts([
+ cosmic_text::fontdb::Source::Binary(Arc::new(
include_bytes!("../fonts/Iced-Icons.ttf").as_slice(),
- ))]
- .into_iter(),
- )),
+ )),
+ ])),
version: Version::default(),
}
}