FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 693 : p3d text chars clipped when using small fonts
Last modified: 2007-11-28 06:03
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
466
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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
***