diff options
Diffstat (limited to 'wgpu/src')
-rw-r--r-- | wgpu/src/renderer/text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/renderer/text.rs b/wgpu/src/renderer/text.rs index 606ebe9f..82f75f09 100644 --- a/wgpu/src/renderer/text.rs +++ b/wgpu/src/renderer/text.rs @@ -47,7 +47,7 @@ impl text::Renderer for Renderer { let (width, height) = if let Some(bounds) = glyph_brush.borrow_mut().glyph_bounds(&text) { - (bounds.width().round(), bounds.height().round()) + (bounds.width().ceil(), bounds.height().ceil()) } else { (0.0, 0.0) }; |