Bug 1189 : texts are not correct by pdf export
Last modified: 2009-03-04 12:56




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
redregar
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-03-04 11:23
/*evertime the texts are "overpainted" and not clear to see...but only by
the pdf in the appliation all looks right.i hope u guys can fix it*/
PFont font;

import processing.pdf.*;

void setup () {

size (320, 240);
font = loadFont("1454.vlw");

beginRecord (PDF, "vectors.pdf");

fill (255, 72, 0);

}

void draw () {

noLoop();
stroke(20);
textFont(font,48);
text("hallo?",0,50);
ellipse (random (width), random (height), 80, 80);

endRecord ();

}
Additional Comment #1 From fry 2009-03-04 12:56
This is covered in the PDF reference. The simplest solution is to use
createFont(), not loadFont().