diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs index ef910c3934..c5f435c169 100644 --- a/wgpu/src/text.rs +++ b/wgpu/src/text.rs @@ -425,6 +425,12 @@ impl Cache { ); let bounds = measure(&buffer); + buffer.set_size( + font_system, + bounds.width.ceil(), + bounds.height.ceil(), + ); + let _ = entry.insert(Entry { buffer, bounds }); for bounds in [