diff options
author | 2019-11-13 07:22:21 +0100 | |
---|---|---|
committer | 2019-11-13 07:22:21 +0100 | |
commit | 6857829dc3171fd68065498b6cd29f0ef02a8d43 (patch) | |
tree | db844c70cc8fbd2f48b175e97bde50866641a1b4 /wgpu/src/renderer.rs | |
parent | f0b1e65ba4f8df173f8201585a1d81245e93ab94 (diff) | |
download | iced-6857829dc3171fd68065498b6cd29f0ef02a8d43.tar.gz iced-6857829dc3171fd68065498b6cd29f0ef02a8d43.tar.bz2 iced-6857829dc3171fd68065498b6cd29f0ef02a8d43.zip |
Draft `Font` type and implement `Text::font`
Diffstat (limited to 'wgpu/src/renderer.rs')
-rw-r--r-- | wgpu/src/renderer.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs index 6441043c..d3bdc878 100644 --- a/wgpu/src/renderer.rs +++ b/wgpu/src/renderer.rs @@ -147,6 +147,7 @@ impl Renderer { bounds, size, color, + font, horizontal_alignment, vertical_alignment, } => { @@ -179,6 +180,7 @@ impl Renderer { bounds: (bounds.width, bounds.height), scale: wgpu_glyph::Scale { x: *size, y: *size }, color: color.into_linear(), + font_id: self.text_pipeline.find_font(*font), layout: wgpu_glyph::Layout::default() .h_align(match horizontal_alignment { iced_native::text::HorizontalAlignment::Left => { |