Bug 633 : Java2D textLinePlacedImpl should check for ENABLE_NATIVE_FONTS hint
Last modified: 2008-10-10 05:51




Status:
ASSIGNED
Resolution:
-
Priority:
P2
Severity:
normal

 

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.