FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1189 : texts are not correct by pdf export
Last modified: 2009-03-04 12:56
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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().