If we're imitating a CRT character generator, obviously we should
process pixels line-by-line, not column-by-column. But that means
writing "for (y ...)" before "for (x ...)" which isn't the instinctive
way I did it.
So now that's corrected and the Y loops are outside the X loops, which
should make any debugging output easier to follow. This has been
confirmed not to change FreeType rendering at 10.5 ppem.
for (x = 0; x < XSIZE; x++) vstems[x] = 0;
for (y = 0; y < YSIZE; y++) hstems[y] = 0;
clearpath();
- for (x = 0; x < XSIZE; x++) {
- for (y = 0; y < YSIZE; y++) {
+ for (y = 0; y < YSIZE; y++) {
+ for (x = 0; x < XSIZE; x++) {
if (GETPIX(x, y)) {
bool tl, tr, bl, br;
} while (0)
clearpath();
- for (x = 0; x < XSIZE; x++) {
- for (y = 0; y < YSIZE; y++) {
+ for (y = 0; y < YSIZE; y++) {
+ for (x = 0; x < XSIZE; x++) {
if (GETPIX(x, y)) {
if (R) CONNECT(1, 0);
if (D) CONNECT(0, -1);