ref: aabdbc1576eb78ff59cce5a293a91ae019d2e281
parent: 1ad7240c8dc59d124cb5ee0f1b1fe5ddaeff90ad
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Jul 18 12:44:33 EDT 2024
always have a gap of one pixel - a few glyphs still go over the edge
--- a/rast.c
+++ b/rast.c
@@ -641,6 +641,13 @@
w = h = 1;
baseline = 0;
}else{
+ /*
+ * very rarely a glyph will have one of its segments
+ * go over the edge because of imprecise arithmetic.
+ * it's much easier to solve this by always having a small gap.
+ */
+ if(gap < 1)
+ gap = 1;
xMin -= gap;
yMin -= gap;
xMax += gap;
--
⑨