我在处理中工作,我想拥有Textalign Dementification模式。我找到了这个链接: http://code.google.com/p/处理/问题/详细信息?ID= 186 ,但不能让它工作。没有clue如何导入。

我有一个非常长的字符串,我想根据x1,x2变量来证明它,例如x1= 100(字符串开始),x2= 200(String停止,得到\ n或其他东西)并继续下一个再次与X1线。

感谢

有帮助吗?

解决方案

Very sorry for late replay. I got this issue solved with a little bit of help. Thanks antiplastik! See PGraphicsJava2DJustify.java

HowTo:

size(100, 100, "PGraphicsJava2DJustify");
background(255);
fill(0);
textAlign(PGraphicsJava2DJustify.JUSTIFY);
textFont(createFont("", 10), 10);
text("this is the text to justify", 20, 20, 60, 60);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top