Fix text measurement (needs further testing)
This commit is contained in:
parent
d3cdee1d9b
commit
8a0a31c513
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue