summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-02 01:14:07 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-02 01:14:07 +0100
commit8a0a31c513e02d01e71fdf989709bbfc6bb4579a (patch)
treea5c1efd11d99d08c49fdd910a2f4904a520b69a8 /wgpu
parentd3cdee1d9bcd9f7fe22eeccce93ab5a26faf18e8 (diff)
downloadiced-8a0a31c513e02d01e71fdf989709bbfc6bb4579a.tar.gz
iced-8a0a31c513e02d01e71fdf989709bbfc6bb4579a.tar.bz2
iced-8a0a31c513e02d01e71fdf989709bbfc6bb4579a.zip
Fix text measurement (needs further testing)
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/renderer/text.rs2
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)
};