diff --git a/processing/app/PdeRuntime.java b/processing/app/PdeRuntime.java index 57a1be856..e8596b465 100644 --- a/processing/app/PdeRuntime.java +++ b/processing/app/PdeRuntime.java @@ -575,7 +575,7 @@ java.lang.NullPointerException thread = null; } catch (Exception e) { - System.out.println("SystemOutSiphon: i just died in your arms tonight"); + //System.out.println("SystemOutSiphon: i just died in your arms tonight"); e.printStackTrace(); thread = null; //System.out.println(""); diff --git a/processing/build/shared/bugs.txt b/processing/build/shared/bugs.txt index 40a81b0aa..dfef98ebd 100644 --- a/processing/build/shared/bugs.txt +++ b/processing/build/shared/bugs.txt @@ -37,6 +37,16 @@ PROCESSING WON'T START! NOTHING HAPPENS WHEN I HIT "RUN"! - windows.. you might also try using run.bat to start processing. lots of people seem to have a better time with this method. +- any platform.. errors inside code that is outside of setup() or + loop(), for instance this code: + PFont font = loadFont("blah.vlw"); + void setup { + // something fancy + } + may just hang/freeze processing if "blah.vlw" is not in the "data" + folder. in general, a better practice is to use loadFont() (and + loadImage and the rest) inside of a function like setup(). + - on 50% of machines, there still seems to be a bug that causes the application to hang completely when something that uses a library (or a code folder) is run. symptom will be a non-responsive applet diff --git a/processing/build/shared/revisions.txt b/processing/build/shared/revisions.txt index 29d97870d..5858b81e8 100644 --- a/processing/build/shared/revisions.txt +++ b/processing/build/shared/revisions.txt @@ -69,6 +69,13 @@ major changes: (things that break your code) http://processing.org/discourse/yabb/YaBB.cgi?board=BugFixes;action=display;num=1096304533;start=0 http://processing.org/discourse/yabb/YaBB.cgi?board=BugFixes;action=display;num=1096304779;start=0 +- the sizing/spacing of text() has changed! a combination of small + bugs inside text() and the "Create Font" tool meant that text was + not sized properly. it's now been tweaked to more closely resemble + the sizing used by the platform. for instance, 48 point type of a + font in illustrator looks like 48 point type of the same font in + processing. + additions: @@ -78,6 +85,10 @@ additions: println(hex(c)); - support for text in a box: text(String text, x, y, width, height); + this is like the text box in adobe illustrator or programs like + that, note that the x, y where it starts will be the top of the + line of text, not the baseline of the text as is the case for + the other text() functions. - operators for int(), string(), char(), and other basic types. String s = "10.2"; diff --git a/processing/core/PFont.java b/processing/core/PFont.java index e5af2a456..cb1d71cda 100644 --- a/processing/core/PFont.java +++ b/processing/core/PFont.java @@ -524,8 +524,13 @@ public class PFont implements PConstants { /** - * Draw text in a text both that is constrained to a - * particular width and height + * Draw text in a box that is constrained to a + * particular width and height. + * + * Note that the x,y coords of the start of the box + * will align with the *ascent* of the text, + * not the baseline, as is the case for the other + * text() functions. */ public void text(String str, float x, float y, float z, float w, float h, PGraphics parent) { diff --git a/processing/core/todo.txt b/processing/core/todo.txt index 0c2587f97..16f5bc864 100644 --- a/processing/core/todo.txt +++ b/processing/core/todo.txt @@ -206,23 +206,30 @@ X useful for libraries saving files etc. 0070p8 -_ need to try jogl to make sure no further changes -_ and the illustrator stuff - X sizing bug fix to fonts, they now match platform standards X however, *this will break people's code* X text in a box not written -_ make sure to note in the docs that text/textrect position differently +X make sure to note in the docs that text/textrect position differently o for this reason, should it be called textrect()? -_ if a word (no spaces) is too long to fit, insert a 'space' +X font heights and leading are bad +X get good values for ascent and descent +X if ScreenFont subclasses PFont.. can that be used in textFont()? +X check to make sure the tops of fonts not getting chopped in font builder + + +............................................................ + + +0071 or later (but high priority) + +text fixes +_ if a word (no spaces) is too long to fit, insert a 'space' _ move left/center/right aligning into the font class _ otherwise text with alignment has problems with returns _ could PFont2 be done entirely with reflection? _ that way other font types can properly extend PFont -X font heights and leading are bad -X get good values for ascent and descent -X if ScreenFont subclasses PFont.. can that be used in textFont()? _ move SCREEN_SPACE into ScreenFont() class? +_ probably not, casey thinks screen space text is prolly more useful _ that way can clear up some of the general confusion in the code _ also handle things like rotation _ not having kerning really blows @@ -230,20 +237,13 @@ _ could this be pulled from the OpenType font stuff? _ it could be placed at the end of the file _ simple way to just use java text in p5 applets? _ the current text support is just so hokey -X check to make sure the tops of fonts not getting chopped in font builder -_ look into fixing the texture mapping to not squash fonts +_ look into fixing the texture mapping to not squash fonts _ NEW_GRAPHICS totally smashes everything - +_ need to try jogl to make sure no further changes +_ and the illustrator stuff _ 404 error because first searches applet directory on zipdecode - _ image(String name) and textFont(String name) - -............................................................ - - -0071 or later (but high priority) - _ before graphics engine change, attach jogl stuff? _ massive graphics engine changes _ explicitly state depth()/nodepth() diff --git a/processing/todo.txt b/processing/todo.txt index 4e81052a3..f9ee993a5 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -245,27 +245,27 @@ X fix threading issue, don't call "break" X fixed a bunch of weird chmod stuff for windows X update with other examples - 0070p8 X height for applets wasn't working properly X debug font stuff in processing.core X mbox wasn't set properly (not a power of 2) X debug framerate() stuff with noLoop() X re-enabled printarr(Object[]) +X remove SystemOutSiphon: i just died message +X readme.txt/bugs.txt: strange hangs, errors that don't come up: +X watch out for loadFont() outside of setup +X or other things that can cause errors +X change PSerial to serial, also PMovie etc.. --> most stuff is over in core.. argh - -_ remove SystemOutSiphon: i just died message +_ bring back some form of beginSerial/beginVideo +_ openSerial(), serial().. +_ should it prompt or use the first available if none specified? +_ serial(null, ...) could prompt _ nanoxml problems with manifest -_ readme.txt/bugs.txt: strange hangs, errors that don't come up: -_ watch out for loadFont() outside of setup -_ or other things that can cause errors +_ make exit() and/or size(0, 0) work for scripts - - -with casey _ figure out what to include for examples/libraries _ sketches no longer require a "data" folder _ let's not call it 'expert', let's just say w/o java @@ -279,6 +279,8 @@ _ example that uses loop/noLoop, or redraw? ...................................................................... +_ serial - if null serial port name, prompt for one + _ run library destroy after hitting 'stop' _ quicktime audio doesn't stop after hitting 'stop' _ weirdness external stop not calling stop(), just finished = true