text fix?

This commit is contained in:
2025-08-24 22:40:12 -04:00
parent 8f02a358a4
commit 5cb84047b9
2 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ impl<'a, Ctx> Painter<'a, Ctx> {
// TODO: I feel like this shouldn't be needed // 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 // 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 // I'm unsure exactly why it happens or if this will ever expand it too much
region.bot_right.shift(0.01); // region.bot_right.shift(0.01);
self.draw_texture_at(&handle, region); self.draw_texture_at(&handle, region);
} }

View File

@@ -61,8 +61,8 @@ fn vs_main(
) -> VertexOutput { ) -> VertexOutput {
var out: VertexOutput; var out: VertexOutput;
let top_left = round(in.top_left_anchor * window.dim) + in.top_left_offset; let top_left = floor(in.top_left_anchor * window.dim) + floor(in.top_left_offset);
let bot_right = round(in.bottom_right_anchor * window.dim) + in.bottom_right_offset; let bot_right = floor(in.bottom_right_anchor * window.dim) + floor(in.bottom_right_offset);
let size = bot_right - top_left; let size = bot_right - top_left;
let uv = vec2<f32>( let uv = vec2<f32>(