Fix text measurement (needs further testing)

This commit is contained in:
Héctor Ramón Jiménez 2019-11-02 01:14:07 +01:00
parent d3cdee1d9b
commit 8a0a31c513

View file

@ -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)
};