FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 174 : 0093 OPENGL font size is always constant
Last modified: 2005-10-31 09:13
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
analogAI
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2005-10-14 14:02
OS: Windows 2000
Version: 0093, JavaIncluded Version
Reproduceable: Always
The font size is always constant in OPENGL mode, regardless how the size is
set via textFont(PFont font,int size) function. It works correctly in P3D
mode.
To reproduce the bug, draw some fonts and switch between OPENGL mode and
P3D mode.
OPENGL CODE: (displays incorrect constant size font)
import processing.opengl.*;
PFont font;
void setup(){
size(200,200,OPENGL);
font = loadFont("ArialMT-48.vlw");
}
void draw(){
textFont(font,32);
text("size 32",15,30);
textFont(font,16);
text("size 16",15,60);
textFont(font,8);
text("size 08",15,90);
textFont(font,4);
text("size 04",15,120);
}
P3D CODE:
//import processing.opengl.*;
PFont font;
void setup(){
size(200,200,P3D);
font = loadFont("ArialMT-48.vlw");
}
void draw(){
textFont(font,32);
text("size 32",15,30);
textFont(font,16);
text("size 16",15,60);
textFont(font,8);
text("size 08",15,90);
textFont(font,4);
text("size 04",15,120);
}
Additional Comment
#1 From fry 2005-10-15 10:22
fixed for revision 0094, thanks for the complete report and example.
Additional Comment
#2 From analogAI 2005-10-15 18:15
Wow Ben, that was quick... less than 24hrs from bug opend to fixed:) Thanks!
(In reply to
comment #1
)
>
>
>
> Additional
Comment #1
From
> fry
> 2005-10-15 10:22
>
> <!--
> addReplyLink(1); //-->[reply]
>
>
>
>
> fixed for revision 0094, thanks for the complete report and example.
>
>
Additional Comment
#3 From fry 2005-10-21 14:34
***
Bug 185
has been marked as a duplicate of this bug. ***
Additional Comment
#4 From fry 2005-10-31 09:13
***
Bug 191
has been marked as a duplicate of this bug. ***