adding support for textMode(SHAPE) and tessellation of fonts

This commit is contained in:
benfry
2005-08-07 16:49:05 +00:00
parent 14df346bf0
commit 1377ea342a
4 changed files with 257 additions and 24 deletions

View File

@@ -1726,9 +1726,12 @@ public class PGraphics extends PImage implements PConstants {
* textMode(SCREEN), because it uses the pixels directly from the font.
*/
public void textMode(int mode) {
if ((mode == LEFT) || (mode == CENTER) || (mode == RIGHT)) {
throw new RuntimeException("textMode() is now textAlign() in Processing beta");
}
if ((mode != SCREEN) && (mode != MODEL)) {
throw new RuntimeException("Only textMode(SCREEN) or textMode(MODEL) " +
"can be used. Maybe you meant textAlign()?");
"are available with this renderer.");
}
if (textFont != null) {