fix for text box sizing bug

This commit is contained in:
benfry
2005-06-28 15:45:07 +00:00
parent bd92960a4b
commit ef9f9a80ca
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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
-2
View File
@@ -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?