Round paragraph position until we implement subpixel glyph positioning
This commit is contained in:
parent
180cb073bd
commit
c6d9221ee4
2 changed files with 12 additions and 5 deletions
|
|
@ -133,10 +133,14 @@ impl Pipeline {
|
|||
alignment::Vertical::Bottom => y - total_height,
|
||||
};
|
||||
|
||||
// TODO: Subpixel glyph positioning
|
||||
let left = left.round() as i32;
|
||||
let top = top.round() as i32;
|
||||
|
||||
glyphon::TextArea {
|
||||
buffer,
|
||||
left: left as i32,
|
||||
top: top as i32,
|
||||
left,
|
||||
top,
|
||||
bounds,
|
||||
default_color: {
|
||||
let [r, g, b, a] = section.color.into_linear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue