From 6857829dc3171fd68065498b6cd29f0ef02a8d43 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 13 Nov 2019 07:22:21 +0100 Subject: Draft `Font` type and implement `Text::font` --- wgpu/src/renderer.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wgpu/src/renderer.rs') 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 => { -- cgit