diff --git a/src/layout/painter.rs b/src/layout/painter.rs index 9b0c40c..eddad59 100644 --- a/src/layout/painter.rs +++ b/src/layout/painter.rs @@ -153,11 +153,7 @@ impl<'a, Ctx> Painter<'a, Ctx> { pub fn draw_text(&mut self, content: &str, attrs: &TextAttrs) { let handle = self.text.draw(content, attrs, self.textures); let dims: Vec2 = self.textures[&handle].dimensions().into(); - let mut region = self.state.region.center().expand(dims); - // TODO: I feel like this shouldn't be needed - // what this does is makes sure the text doesn't get squeezed into one pixel less - // I'm unsure exactly why it happens or if this will ever expand it too much - // region.bot_right.shift(0.01); + let region = self.state.region.center().expand(dims); self.draw_texture_at(&handle, region); }