checking on fonts

This commit is contained in:
benfry
2005-02-28 06:23:02 +00:00
parent bc3b631a4e
commit 5604cd04bb
4 changed files with 15 additions and 8 deletions
+4 -2
View File
@@ -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);
}
}
+2 -2
View File
@@ -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;
+5
View File
@@ -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