Let you try attached sample sketch. Single pixel black dots are plotted upper side of text-line.
- size(640, 400);
- String _FONTNAME = "FFScala";
- PGraphics pg = createGraphics(640, 480, P3D);
- PFont font = createFont("FFScala", 18, false);
- pg.beginDraw();
- pg.textFont(font);
- pg.textMode(SCREEN);
- pg.textSize(18);
- pg.textAlign(LEFT, TOP);
- pg.endDraw();
- pg.beginDraw();
- pg.text("Look upward of this line. There are many single pixel dots.", 100, 100);
- pg.endDraw();
- blend(pg, 0, 0, 640, 480, 0, 0, 640, 480, BLEND);