From 8f164faabe5aa8035c3f5824f0eefa4aba9c4115 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Mon, 1 Sep 2025 23:05:39 +0100 Subject: [PATCH] move equals sign up by 1 pixel, for better alignment with the other characters --- fonts/equals.sml | 76 +++++++++++++++++++++++++++++++----------------- 1 file changed, 50 insertions(+), 26 deletions(-) diff --git a/fonts/equals.sml b/fonts/equals.sml index 4b37166..022f8d3 100644 --- a/fonts/equals.sml +++ b/fonts/equals.sml @@ -6,48 +6,72 @@ struct fun yToNdc (yOffset, ypos, scale, halfHeight) = ~(((ypos * scale + yOffset) - halfHeight) / halfHeight) - fun lerp (xOffset: Real32.real, yOffset, scale, windowWidth, windowHeight, r, g, b) = + fun lerp (xOffset: Real32.real, yOffset, scale, windowWidth, windowHeight) = let val halfWidth = windowWidth / 2.0 val halfHeight = windowHeight / 2.0 in #[ xToNdc (xOffset, 0.000000000000000, scale, halfWidth), -yToNdc (yOffset, 7.000000000000000, scale, halfHeight), -r, g, b, -xToNdc (xOffset, 5.000000000000000, scale, halfWidth), -yToNdc (yOffset, 7.000000000000000, scale, halfHeight), -r, g, b, -xToNdc (xOffset, 0.000000000000000, scale, halfWidth), yToNdc (yOffset, 6.000000000000000, scale, halfHeight), -r, g, b, -xToNdc (xOffset, 0.000000000000000, scale, halfWidth), -yToNdc (yOffset, 6.000000000000000, scale, halfHeight), -r, g, b, -xToNdc (xOffset, 5.000000000000000, scale, halfWidth), -yToNdc (yOffset, 7.000000000000000, scale, halfHeight), -r, g, b, +0.000000000000000, +0.000000000000000, +0.000000000000000, xToNdc (xOffset, 5.000000000000000, scale, halfWidth), yToNdc (yOffset, 6.000000000000000, scale, halfHeight), -r, g, b, +0.000000000000000, +0.000000000000000, +0.000000000000000, xToNdc (xOffset, 0.000000000000000, scale, halfWidth), -yToNdc (yOffset, 9.000000000000000, scale, halfHeight), -r, g, b, +yToNdc (yOffset, 5.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000, +xToNdc (xOffset, 0.000000000000000, scale, halfWidth), +yToNdc (yOffset, 5.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000, xToNdc (xOffset, 5.000000000000000, scale, halfWidth), -yToNdc (yOffset, 9.000000000000000, scale, halfHeight), -r, g, b, +yToNdc (yOffset, 6.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000, +xToNdc (xOffset, 5.000000000000000, scale, halfWidth), +yToNdc (yOffset, 5.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000, xToNdc (xOffset, 0.000000000000000, scale, halfWidth), yToNdc (yOffset, 8.000000000000000, scale, halfHeight), -r, g, b, +0.000000000000000, +0.000000000000000, +0.000000000000000, +xToNdc (xOffset, 5.000000000000000, scale, halfWidth), +yToNdc (yOffset, 8.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000, xToNdc (xOffset, 0.000000000000000, scale, halfWidth), -yToNdc (yOffset, 8.000000000000000, scale, halfHeight), -r, g, b, -xToNdc (xOffset, 5.000000000000000, scale, halfWidth), -yToNdc (yOffset, 9.000000000000000, scale, halfHeight), -r, g, b, +yToNdc (yOffset, 7.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000, +xToNdc (xOffset, 0.000000000000000, scale, halfWidth), +yToNdc (yOffset, 7.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000, xToNdc (xOffset, 5.000000000000000, scale, halfWidth), yToNdc (yOffset, 8.000000000000000, scale, halfHeight), -r, g, b +0.000000000000000, +0.000000000000000, +0.000000000000000, +xToNdc (xOffset, 5.000000000000000, scale, halfWidth), +yToNdc (yOffset, 7.000000000000000, scale, halfHeight), +0.000000000000000, +0.000000000000000, +0.000000000000000 ] end end