mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
adding support for textMode(SHAPE) and tessellation of fonts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user