From 31af9c9246cae6a3de9ff7ae51c0a30716fa24e3 Mon Sep 17 00:00:00 2001 From: benfry Date: Sat, 15 Oct 2005 16:47:49 +0000 Subject: [PATCH] starting rev 94, fixing opengl font size bug --- core/done.txt | 31 ++++++++++++++ core/todo.txt | 31 +------------- done.txt | 90 +++++++++++++++++++++++++++++++++++++++++ opengl/PGraphicsGL.java | 27 +++++++------ todo.txt | 89 +--------------------------------------- 5 files changed, 137 insertions(+), 131 deletions(-) diff --git a/core/done.txt b/core/done.txt index e28d251d8..30f7b1653 100644 --- a/core/done.txt +++ b/core/done.txt @@ -1,3 +1,34 @@ +0093 core +X upgrade jogl to a newer rev to fix osx "cannot lock" issues +X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1118603714 +X http://192.18.37.44/forums/index.php?topic=1596.msg79680#msg79680 +X faster blur code contributed by toxi +X filter(ERODE) and filter(DILATE) contributed by toxi +o textAscent() should probably be g.textAscent instead +o more like textLeading() etc +X nope, because it requires grabbing the font metrics and other calculations +X bezierDetail, curveDetail made public +X added textMode(SHAPE) for OPENGL +X error message saying that strokeCap and strokeJoin don't work in P3D +X textMode(SHAPE) throws ex when drawing and font not installed +X fix a bug with filename capitalization error throwing +X add NO_DEPTH_TEST to PGraphics3 +X java 1.4 code snuck into PApplet, causing problems on the mac +X http://dev.processing.org/bugs/show_bug.cgi?id=146 +X prevent PGraphics.save() from inserting a file prefix +X so that people can use absolute paths +X or add a version that takes a file object + +nixed or fixed in previous releases +X textMode(SCREEN) having issues on Mac OS X +X seem to be problems with updatePixels() on the mac +X appears to run asynchronously +X move zbuffer et al into PGraphics so that people don't have to cast to P3 +X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpenGL;action=display;num=1116978834 +o noLoop() is behaving strangely +o http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1116002432;start=0 + + 0092 core X rle-compressed tga save() method added by toxi X also version that only saves RGB instead of ARGB diff --git a/core/todo.txt b/core/todo.txt index 80f185d21..f1f52e730 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,33 +1,4 @@ -0093 core -X upgrade jogl to a newer rev to fix osx "cannot lock" issues -X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1118603714 -X http://192.18.37.44/forums/index.php?topic=1596.msg79680#msg79680 -X faster blur code contributed by toxi -X filter(ERODE) and filter(DILATE) contributed by toxi -o textAscent() should probably be g.textAscent instead -o more like textLeading() etc -X nope, because it requires grabbing the font metrics and other calculations -X bezierDetail, curveDetail made public -X added textMode(SHAPE) for OPENGL -X error message saying that strokeCap and strokeJoin don't work in P3D -X textMode(SHAPE) throws ex when drawing and font not installed -X fix a bug with filename capitalization error throwing -X add NO_DEPTH_TEST to PGraphics3 -X java 1.4 code snuck into PApplet, causing problems on the mac -X http://dev.processing.org/bugs/show_bug.cgi?id=146 -X prevent PGraphics.save() from inserting a file prefix -X so that people can use absolute paths -X or add a version that takes a file object - -nixed or fixed in previous releases -X textMode(SCREEN) having issues on Mac OS X -X seem to be problems with updatePixels() on the mac -X appears to run asynchronously -X move zbuffer et al into PGraphics so that people don't have to cast to P3 -X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpenGL;action=display;num=1116978834 -o noLoop() is behaving strangely -o http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1116002432;start=0 - +0094 core _ update to latest 1.4.2 java vm _ add auto-install of cab file inside applet.html diff --git a/done.txt b/done.txt index f65e20acb..cf1368d42 100644 --- a/done.txt +++ b/done.txt @@ -1,3 +1,93 @@ +0093 pde +X println() can hose the app for the first 20-30 frames +X incorporate fix posted by mellis +X need to figure out threading etc +X problem with it launching a new thread for every single update! +X http://processing.org/bugs/show_bug.cgi?id=19 +X make a note that video doesn't currently work in applets in the faq +X scanning sketchbook folder may be extremely slow +X when lots of frames saved out, takes forever to scan the folder +X some dumb sorting code was responsible +X and each file was being treated as a directory. oops. +X http://dev.processing.org/bugs/show_bug.cgi?id=84 +o rebuild jikes with --enable-static --disable-shared +X http://dev.processing.org/bugs/show_bug.cgi?id=47 +X switched to use the version from the rpm on the sf.net site +X with fix of bug #47, svn binaries are no longer liabilities on linux +X http://dev.processing.org/bugs/show_bug.cgi?id=48 +o auto-run the javadoc in dist.sh +o doctor a copy of the css file to use p5 defaults +o and re-copy the css in after generating the doc each time +X timing fix introduce regression on linux +X extra (NUL?) chars are added +X i.e. on first run, the ten blank lines each have a li'l box +X http://dev.processing.org/bugs/show_bug.cgi?id=118 +X faq: "my applet doesn't work on export"... where to check for errors +X very common: cached version is being used +X go through methods to properly flush the cache +X can also just change the name +X make a note in the library howto about using something besides p5 +X add the faq to the help menu +X patch from mellis to make dist.sh properly grab version numbers w/o fink +X fix to enable quicktime 7 to run properly on windows + +fixed in previous releases +X closing window w/o first hitting stop() causes freak out +X opengl gives an OutOfMemoryError +X java2d just goes into a lock +X could also be code that's in an infinite loop (i.e. text error) +X which then causes a full lock +X something really bad happened with println() in this release +X perhaps only without a code folder and/or running in java2d mode? +X this may also be what's hosing +X external apps don't stop at all when 'stop' is hit +X worker thread is halting the app ala code folder bug +X could this be dealt with by using nio? +X host environment will be running 1.4 so... +o make note that changing screen config requires restart of processing +o static { checkScreens(); } +o static void PApplet.checkScreens() { } +o to run explicitly later +o this seems too complicated.. just make people restart +o convert spaces to underscores and vice versa for sketch/tab names +o underscoring everything is kinda nasty +o only needs to be underscored when passed off to java +o although then if people *want* underscores, there's gonna be trouble +o http://dev.processing.org/bugs/show_bug.cgi?id=76 +o if in full java mode +o if extends PApplet.. or rather, put PApplet cast into a +o try/catch block.. if it doesn't work, try applet. if that +o doesn't work, try using the class' main() to run it +X not gonna do this, p5 is not a java editor +o if a .pde isn't contained in a properly named folder +o offer to rename the parent folder, rather than placing in a new folder +X add command key for "show sketch folder" + +bugzilla problems (fixed by fjen) +X localconfig has been modified, need to update for everything +X "back to bug #110" should be on one line +X text fields on "post bug" won't let me click +X (i.e. "Reassign bug to" and "duplicate of bug #") +X continually de-select themselves so i can't paste or type text +X remove "platform" and "severity".. set them to "all" and "normal" +X buglist.cgi +X replace the platform column with the os column (uses icons for os) +X sorting based on any of the headings gives an error +X "102 bugs found. 102 bugs found." +X remove the severity column +X it's normal or enhanced, and enhanced is already gray +X make os into: Mac OS, Windows, Linux, Other +X while other categories might exist, it's too confusing for minimal benefit +o make things that are P5 into "enhancement" +o unless a P6 can be added? or something called "enhancement"? +X is there a way to list "all" bugs (especially sorted by priority?) +X or at least the first 20 listed by priority? + +forum bugs +X when replying, all the replies so far are listed twice +o fonts are wrong all over the place (use windows to debug) + + 0092 pde X more info in the todo about event handling diff --git a/opengl/PGraphicsGL.java b/opengl/PGraphicsGL.java index 2f58a3b60..ceaf976c6 100644 --- a/opengl/PGraphicsGL.java +++ b/opengl/PGraphicsGL.java @@ -885,20 +885,21 @@ public class PGraphicsGL extends PGraphics3 { // can't cancel on textMode(SHAPE) because textMode() must happen // after textFont() and textFont() calls textSize() //if ((textMode != SHAPE) || (textFontNative == null)) { - if (textFontNative == null) { - super.textSize(size); - return; + + // call this anyway to set the base variables for cases + // where textMode(SHAPE) will not be used + super.textSize(size); + + // derive the font just in case the user is gonna call + // textMode(SHAPE) afterwards + if (textFontNative != null) { + textFontNative = textFontNative.deriveFont(size); + Graphics2D graphics = (Graphics2D) canvas.getGraphics(); + graphics.setFont(textFontNative); + + // get the metrics info + textFontNativeMetrics = graphics.getFontMetrics(textFontNative); } - //System.out.println("PGraphicsGL.textSize()"); - - textFontNative = textFontNative.deriveFont(size); - Graphics2D graphics = (Graphics2D) canvas.getGraphics(); - //g2.setFont(textFontNative); - graphics.setFont(textFontNative); - - // get the metrics info - //textFontNativeMetrics = g2.getFontMetrics(textFontNative); - textFontNativeMetrics = graphics.getFontMetrics(textFontNative); } diff --git a/todo.txt b/todo.txt index 035611c91..65442f79b 100644 --- a/todo.txt +++ b/todo.txt @@ -1,91 +1,4 @@ -0093 pde -X println() can hose the app for the first 20-30 frames -X incorporate fix posted by mellis -X need to figure out threading etc -X problem with it launching a new thread for every single update! -X http://processing.org/bugs/show_bug.cgi?id=19 -X make a note that video doesn't currently work in applets in the faq -X scanning sketchbook folder may be extremely slow -X when lots of frames saved out, takes forever to scan the folder -X some dumb sorting code was responsible -X and each file was being treated as a directory. oops. -X http://dev.processing.org/bugs/show_bug.cgi?id=84 -o rebuild jikes with --enable-static --disable-shared -X http://dev.processing.org/bugs/show_bug.cgi?id=47 -X switched to use the version from the rpm on the sf.net site -X with fix of bug #47, svn binaries are no longer liabilities on linux -X http://dev.processing.org/bugs/show_bug.cgi?id=48 -o auto-run the javadoc in dist.sh -o doctor a copy of the css file to use p5 defaults -o and re-copy the css in after generating the doc each time -X timing fix introduce regression on linux -X extra (NUL?) chars are added -X i.e. on first run, the ten blank lines each have a li'l box -X http://dev.processing.org/bugs/show_bug.cgi?id=118 -X faq: "my applet doesn't work on export"... where to check for errors -X very common: cached version is being used -X go through methods to properly flush the cache -X can also just change the name -X make a note in the library howto about using something besides p5 -X add the faq to the help menu -X patch from mellis to make dist.sh properly grab version numbers w/o fink -X fix to enable quicktime 7 to run properly on windows - -fixed in previous releases -X closing window w/o first hitting stop() causes freak out -X opengl gives an OutOfMemoryError -X java2d just goes into a lock -X could also be code that's in an infinite loop (i.e. text error) -X which then causes a full lock -X something really bad happened with println() in this release -X perhaps only without a code folder and/or running in java2d mode? -X this may also be what's hosing -X external apps don't stop at all when 'stop' is hit -X worker thread is halting the app ala code folder bug -X could this be dealt with by using nio? -X host environment will be running 1.4 so... -o make note that changing screen config requires restart of processing -o static { checkScreens(); } -o static void PApplet.checkScreens() { } -o to run explicitly later -o this seems too complicated.. just make people restart -o convert spaces to underscores and vice versa for sketch/tab names -o underscoring everything is kinda nasty -o only needs to be underscored when passed off to java -o although then if people *want* underscores, there's gonna be trouble -o http://dev.processing.org/bugs/show_bug.cgi?id=76 -o if in full java mode -o if extends PApplet.. or rather, put PApplet cast into a -o try/catch block.. if it doesn't work, try applet. if that -o doesn't work, try using the class' main() to run it -X not gonna do this, p5 is not a java editor -o if a .pde isn't contained in a properly named folder -o offer to rename the parent folder, rather than placing in a new folder -X add command key for "show sketch folder" - -bugzilla problems (fixed by fjen) -X localconfig has been modified, need to update for everything -X "back to bug #110" should be on one line -X text fields on "post bug" won't let me click -X (i.e. "Reassign bug to" and "duplicate of bug #") -X continually de-select themselves so i can't paste or type text -X remove "platform" and "severity".. set them to "all" and "normal" -X buglist.cgi -X replace the platform column with the os column (uses icons for os) -X sorting based on any of the headings gives an error -X "102 bugs found. 102 bugs found." -X remove the severity column -X it's normal or enhanced, and enhanced is already gray -X make os into: Mac OS, Windows, Linux, Other -X while other categories might exist, it's too confusing for minimal benefit -o make things that are P5 into "enhancement" -o unless a P6 can be added? or something called "enhancement"? -X is there a way to list "all" bugs (especially sorted by priority?) -X or at least the first 20 listed by priority? - -forum bugs -X when replying, all the replies so far are listed twice -o fonts are wrong all over the place (use windows to debug) +0094 pde _ external apps should inherit memory settings from p5 itself