FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 633 : Java2D textLinePlacedImpl should check for ENABLE_NATIVE_FONTS hint
Last modified: 2008-10-10 05:51
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
ASSIGNED
Resolution:
-
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
gjuggler
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-10-04 05:57
(revision 0125, I believe)
Currently, the textLinePlacedImpl method only checks for the existence of
the textFontNative field when deciding whether to use Java2D or PGraphics
for drawing text:
if (textFontNative == null) {
super.textLinePlacedImpl(buffer, start, stop, x, y);
return;
}
However, if the user loads his/her font while the ENABLE_NATIVE_FONTS hint
is true, but subsequently removes the hint, then the PGraphics will still
use Java2D to draw text with that font. We should check for this, I think:
if (!hints[ENABLE_NATIVE_FONTS] || textFontNative == null) {
super.textLinePlacedImpl(buffer, start, stop, x, y);
return;
}
Additional Comment
#1 From fry 2007-10-11 08:53
thanks, will do.
Additional Comment
#2 From fry 2008-10-10 05:51
fixed for 0149.
This bug is now being tracked
here
.