Handle some TextInput events
This commit is contained in:
parent
63cd0fd8eb
commit
fedcab6f4f
7 changed files with 93 additions and 29 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(), bounds.height())
|
||||
(bounds.width().round(), bounds.height().round())
|
||||
} else {
|
||||
(0.0, 0.0)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue