Make Font an associated type of text::Renderer
This commit is contained in:
parent
6786b8a3aa
commit
0300b649d7
9 changed files with 45 additions and 23 deletions
7
wgpu/src/widget/text.rs
Normal file
7
wgpu/src/widget/text.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
//! Write some text for your users to read.
|
||||
use crate::Renderer;
|
||||
|
||||
/// A paragraph of text.
|
||||
///
|
||||
/// This is an alias of an `iced_native` text with an `iced_wgpu::Renderer`.
|
||||
pub type Text = iced_native::Text<Renderer>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue