Bug 693 : p3d text chars clipped when using small fonts
Last modified: 2007-11-28 06:03




Status:
RESOLVED
Resolution:
DUPLICATE of bug 466
Priority:
P2
Severity:
normal

 

Reporter:
jedierikb
Assigned To:
fry

Attachment Type Created Size Actions
sample of the problem application/x-zip-compressed 2007-11-28 05:44 10.88 KB

Description:   Opened: 2007-11-28 05:43
v135, vista, jre1.5

//the third "e" is the only one not clipped in the top left

PFont font;

void setup()
{
size( 150, 150, P3D);
background( 0 );
font = loadFont("TimesNewRomanPSMT-18.vlw");
textFont(font);
textSize(18);

noLoop();
}

void draw()
{
String sayWha = "e";

fill(255);

translate(15, 15);
text(sayWha);

translate(50, 50);
char c = sayWha.charAt(0);
int i = font.index(c);
PImage fi = font.images[i];
image(fi, 0, 0);

translate(50, 50);
//just slightly larger and offset to show the whole char
PImage pi = new PImage(40, 40, ALPHA);
pi.set(5, 5, fi);
image(pi, 0, 0);

}
Additional Comment #1 From jedierikb 2007-11-28 05:44
edit]
sample of the problem
Additional Comment #2 From fry 2007-11-28 06:03


*** This bug has been marked as a duplicate of 466 ***