[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] Better render hline last cell at smooth
From: |
向雅 |
Subject: |
[ft-devel] Better render hline last cell at smooth |
Date: |
Tue, 8 May 2012 00:08:29 +0800 |
Hi,
I doing some tests for render, and get this:
If change hline render last cell, will get better smooth at right side:
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 926020a..8956d83 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -691,7 +691,7 @@ typedef ptrdiff_t FT_PtrDist;
}
delta = y2 - y1;
- ras.area += (TArea)(( fx2 + ONE_PIXEL - first ) * delta);
+ ras.area += (TArea)(( fx2 + ONE_PIXEL + first ) * delta);
ras.cover += delta;
}
Regards,
Qinxian
致敬
向雅
- [ft-devel] Better render hline last cell at smooth,
向雅 <=