Use ceil to avoid cut text in iced_tiny_skia
This won't be necessary once we reuse the buffers from layouting by leveraging layout linearity.
This commit is contained in:
parent
81d154d63a
commit
0850f52d8c
1 changed files with 6 additions and 1 deletions
|
|
@ -84,7 +84,12 @@ impl Pipeline {
|
|||
) {
|
||||
self.system.as_mut().unwrap().with_mut(|fields| {
|
||||
let key = Key {
|
||||
bounds: bounds.size(),
|
||||
bounds: {
|
||||
let size = bounds.size();
|
||||
|
||||
// TODO: Reuse buffers from layouting
|
||||
Size::new(size.width.ceil(), size.height.ceil())
|
||||
},
|
||||
content,
|
||||
font,
|
||||
size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue