From 5604cd04bbe8ca2b183a14882900918afd186f34 Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 28 Feb 2005 06:23:02 +0000 Subject: [PATCH] checking on fonts --- processing/core/PApplet.java | 6 ++++-- processing/core/PFont.java | 4 ++-- processing/core/todo.txt | 5 +++++ processing/todo.txt | 8 ++++---- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/processing/core/PApplet.java b/processing/core/PApplet.java index 5f47de080..8a97e79d9 100644 --- a/processing/core/PApplet.java +++ b/processing/core/PApplet.java @@ -263,10 +263,12 @@ public class PApplet extends Applet Dimension size = getSize(); if (PApplet.jdkVersion >= 1.3) { - g = new PGraphics2(size.width, size.height); + g = new PGraphics2(INITIAL_WIDTH, INITIAL_HEIGHT); + //g = new PGraphics2(size.width, size.height); //DEFAULT_WIDTH, DEFAULT_HEIGHT); } else { - g = new PGraphics(size.width, size.height); + g = new PGraphics(INITIAL_WIDTH, INITIAL_HEIGHT); + //g = new PGraphics(size.width, size.height); //g = new PGraphics(DEFAULT_WIDTH, DEFAULT_HEIGHT); } } diff --git a/processing/core/PFont.java b/processing/core/PFont.java index 2df94b03f..1be2d9bb9 100644 --- a/processing/core/PFont.java +++ b/processing/core/PFont.java @@ -195,8 +195,8 @@ public class PFont implements PConstants { //images[i].pixels[y * twidth + x] = valu; images[i].pixels[y * twidth + x] = - valu; - //(valu << 24) | 0xFFFFFF; // windows + //valu; + (valu << 24) | 0xFFFFFF; // windows //0xFFFFFF00 | valu; // macosx //(valu << 24) | (valu << 16) | (valu << 8) | valu; diff --git a/processing/core/todo.txt b/processing/core/todo.txt index 14f101c76..3d7531853 100644 --- a/processing/core/todo.txt +++ b/processing/core/todo.txt @@ -115,7 +115,12 @@ _ should we switch to curveVertex(1,2,3) (ala curveto) _ because some confusion with mixing types of curves _ how to force PGraphics() instead of PGraphics2() +_ color channels seem to be swapped on windows in displaying image example +_ check on the mac to see what it looks like + _ get text working again +_ partially the problem is with ALPHA images +_ how should they be stored internally _ also colored text, requires tint() to work properly _ move textMode and textSpace back out of PFont diff --git a/processing/todo.txt b/processing/todo.txt index b368f15d7..ad74be58c 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -36,6 +36,10 @@ can tell, is to Save As once, make at least one change, then Save. what happens if folder already exists on save as? +_ examples need to be updated + +// + _ add tool to hit 'next' to go through examples _ just make it "next file in folder" since examples are all over _ also need to copy examples locally @@ -47,10 +51,6 @@ _ that copies applet.html, _ opens sketch folder, _ and gives info about what to do next (how to edit) -_ examples need to be updated - -// - _ get an xml library in there _ nanoxml problems with manifest _ appears to use 1.6.8 version since it's just two classes