mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fixes to the font builder for windows, fixes for mac dist building,
bugs.txt
This commit is contained in:
@@ -1207,7 +1207,14 @@ public class PdeBase extends Frame
|
||||
String folder = file.getCanonicalPath();
|
||||
|
||||
if (platform == WINDOWS) {
|
||||
Runtime.getRuntime().exec("cmd /c \"" + folder + "\"");
|
||||
// doesn't work
|
||||
//Runtime.getRuntime().exec("cmd /c \"" + folder + "\"");
|
||||
|
||||
// works fine on winxp, prolly win2k as well
|
||||
Runtime.getRuntime().exec("explorer \"" + folder + "\"");
|
||||
|
||||
// not tested
|
||||
//Runtime.getRuntime().exec("start explorer \"" + folder + "\"");
|
||||
|
||||
#ifdef MACOS
|
||||
} else if (platform == MACOSX) {
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.io.*;
|
||||
@@ -100,15 +101,25 @@ public class PdeFontBuilder extends JFrame {
|
||||
// don't care about families starting with . or #
|
||||
// also ignore dialog, dialoginput, monospaced, serif, sansserif
|
||||
|
||||
#ifdef JDK13
|
||||
// getFontList is deprecated in 1.4, so this has to be used
|
||||
GraphicsEnvironment ge =
|
||||
GraphicsEnvironment.getLocalGraphicsEnvironment();
|
||||
|
||||
//Font fonts[] = ge.getAllFonts();
|
||||
String flist[] = ge.getAvailableFontFamilyNames();
|
||||
#else
|
||||
//fontSelector = new JComboBox();
|
||||
String flist[] = Toolkit.getDefaultToolkit().getFontList();
|
||||
#endif
|
||||
|
||||
int index = 0;
|
||||
for (int i = 0; i < flist.length; i++) {
|
||||
if ((flist[i].indexOf('.') == 0) || (flist[i].indexOf('#') == 0) ||
|
||||
(flist[i].equals("Dialog")) || (flist[i].equals("DialogInput")) ||
|
||||
(flist[i].equals("Serif")) || (flist[i].equals("SansSerif")) ||
|
||||
(flist[i].equals("Monospaced"))) continue;
|
||||
if (i != index) flist[index++] = flist[i];
|
||||
flist[index++] = flist[i];
|
||||
}
|
||||
list = new String[index];
|
||||
System.arraycopy(flist, 0, list, 0, index);
|
||||
@@ -146,7 +157,17 @@ public class PdeFontBuilder extends JFrame {
|
||||
});
|
||||
*/
|
||||
|
||||
sample = new JTextArea("The quick brown fox blah blah.");
|
||||
sample = new JTextArea("The quick brown fox blah blah.") {
|
||||
public void paintComponent(Graphics g) {
|
||||
Graphics2D g2 = (Graphics2D) g;
|
||||
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
|
||||
true ?
|
||||
RenderingHints.VALUE_ANTIALIAS_ON :
|
||||
RenderingHints.VALUE_ANTIALIAS_OFF);
|
||||
super.paintComponent(g);
|
||||
}
|
||||
};
|
||||
|
||||
pain.add(sample);
|
||||
|
||||
//for (int i = 0; i < list.length; i++) {
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
if test -f /sw/bin/head
|
||||
then
|
||||
# a more useful version of head than what's included with osx
|
||||
REVISION=`head -c 4 ../../todo.txt`
|
||||
#REVISION=`head -c 4 ../../todo.txt`
|
||||
REVISION=`head -c 4 ../../todo.txt | tail -c 2`
|
||||
else
|
||||
# can't get four bytes of head (osx doesn't support -c)
|
||||
REVISION=0000
|
||||
@@ -16,10 +17,15 @@ echo Creating P5 distribution for revision $REVISION...
|
||||
|
||||
# remove any old boogers
|
||||
rm -rf processing
|
||||
rm -rf processing-*
|
||||
rm -rf Processing*
|
||||
#rm -rf processing-*
|
||||
|
||||
# use 'shared' files as starting point
|
||||
cp -r ../shared processing
|
||||
|
||||
# get rid of any boogers
|
||||
rm -f processing/*~
|
||||
|
||||
rm -rf processing/CVS
|
||||
rm -rf processing/lib/CVS
|
||||
rm -rf processing/fonts/CVS
|
||||
@@ -89,12 +95,8 @@ cp dist/lib/pde_macosx.properties processing/lib/
|
||||
#unix2dos processing/lib/pde.properties_macosx 2> /dev/null
|
||||
|
||||
# zip it all up for release
|
||||
#echo Zipping and finishing...
|
||||
P5=processing-$REVISION
|
||||
mv processing $P5-macosx
|
||||
#zip -rq $P5.zip $P5
|
||||
# nah, keep the new directory around
|
||||
#rm -rf $P5
|
||||
mv processing "Processing $REVISION"
|
||||
|
||||
# if there is a command line tool to make a dmg from this dir.. hmm
|
||||
|
||||
echo Done.
|
||||
BIN
build/macosx/dist/DS_Store
vendored
BIN
build/macosx/dist/DS_Store
vendored
Binary file not shown.
@@ -4,25 +4,33 @@ for older releases will be super crusty. caution: the beverage you're
|
||||
about to enjoy is extremely hot.
|
||||
|
||||
|
||||
ABOUT REV 0062 -
|
||||
ABOUT REV 0062 - 24 september 2003
|
||||
|
||||
this release primarily introduces new features.
|
||||
this release primarily introduces new features. it is the third
|
||||
release in three days, as i'm pushing to get features out and
|
||||
available rather than getting held up in a long release like some of
|
||||
the others have been. this pace of releases will not continue, and is
|
||||
only happening while i have time to work on the environment.
|
||||
|
||||
|
||||
[ changes & additions ]
|
||||
|
||||
- all the formerly included fonts have been removed, in favor of a
|
||||
built-in font creator, available from the sketch menu. the font
|
||||
creator will allow you to create your own fonts, and add them
|
||||
directly to your sketch.
|
||||
|
||||
- "add files" menu command as a simpler way to add files to your
|
||||
sketch folder than navigating through the explorer.
|
||||
|
||||
- a built-in font creator has been added, available from the sketch
|
||||
menu. this tool will allow you to create your own fonts, and add
|
||||
them directly to your sketch. you can also use 'add files' to add
|
||||
fonts from the 'fonts' folder. however, the fonts folder will be
|
||||
removed in a future release.
|
||||
|
||||
- no more digging for sketches.. "show sketch folder" opens up the
|
||||
folder of the current sketch using the finder on the mac or the
|
||||
windows explorer on windows.
|
||||
|
||||
- after exporting a sketch, automatically open the applet folder that
|
||||
was just created.
|
||||
|
||||
- some modification to the menu layouts, i.e. "clear history" is now
|
||||
part of the history menu itself.
|
||||
|
||||
@@ -34,6 +42,12 @@ this release primarily introduces new features.
|
||||
machine, but thanks to timothy mohn for harrassing me into fixing it.
|
||||
|
||||
|
||||
[ known problems ]
|
||||
|
||||
- have been moved to the 'bugs.txt' file. check there for the status
|
||||
of your favorite bug/feature.
|
||||
|
||||
|
||||
ABOUT REV 0061 - 23 september 2003
|
||||
|
||||
this is a brief addendum release to revision 60, that fixes a few
|
||||
|
||||
2
todo.txt
2
todo.txt
@@ -20,6 +20,8 @@ X will be compressed into the .jar anyways
|
||||
X open button stays stuck if no sketch is selected from popup
|
||||
X open applet folder after exporting sketch
|
||||
|
||||
_ switch back to red instead of yellow for errors. whups.
|
||||
|
||||
|
||||
assigned to dan haskovec, completed by fry
|
||||
X event to explorer to open 'data' directory of project
|
||||
|
||||
Reference in New Issue
Block a user