text: offset horizontal scanlines slightly to not bleed bottoms of glyphs into next pixel

This commit is contained in:
K. Lange 2021-07-20 09:32:06 +09:00
parent f57679e0b4
commit 5636d6e045
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void tt_path_paint(gfx_context_t * ctx, struct TT_Shape * shape, uint32_t color)
int yres = 4;
for (int y = startY; y < endY; ++y) {
/* Figure out which ones fit here */
float _y = y;
float _y = y + 0.0001;
for (int l = 0; l < yres; ++l) {
size_t cnt = prune_edges(size, _y, shape->edges, intersects);
if (cnt) {