mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix for text box sizing bug
This commit is contained in:
+1
-1
@@ -832,7 +832,7 @@ public class PApplet extends Applet
|
||||
if (renderer.equals(OPENGL)) {
|
||||
throw new RuntimeException("createGraphics() with OPENGL is not " +
|
||||
"supported. Use P3D instead.");
|
||||
}
|
||||
}
|
||||
|
||||
PGraphics outgoing;
|
||||
try {
|
||||
|
||||
+1
-1
@@ -2004,7 +2004,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
float spaceWidth = textWidth(' ');
|
||||
float runningX = x1; //boxX1;
|
||||
float currentY = y1; //boxY1;
|
||||
float boxWidth = x2 - x2; //boxX2 - boxX1;
|
||||
float boxWidth = x2 - x1; //boxX2 - boxX1;
|
||||
|
||||
// lineX is the position where the text starts, which is adjusted
|
||||
// to left/center/right based on the current textAlign
|
||||
|
||||
@@ -36,8 +36,6 @@ X fix bug where noLoop() was waiting 10 secs to call exit()
|
||||
X add ability to draw text from the current text position
|
||||
_ need to add this to the documentation
|
||||
|
||||
_ testing cvs here.. and again
|
||||
|
||||
_ leading looks too big, at least in PGraphics2 with news gothic
|
||||
_ though it may be the converted version of the .ttf?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user