mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
checking on fonts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user