Bug 806 : Text position is rounded before scaling in default renderer
Last modified: 2009-09-05 11:25




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

 

Reporter:
Jo Wood
Assigned To:
fry

Attachment Type Created Size Actions
Animates text surrounded by rectangle, but text placement is quantized text/plain 2008-06-05 01:26 1.54 KB

Description:   Opened: 2008-06-05 01:19
Processing version: 0138 beta
OS: MacOS 10.5.3
Hardware: MacBook Pro (Intel)

Positioning of text using text() rounds coordinates before scaling. This results in very
imprecise text placement when scaling screen space with a factor greater than 1. This does
not occur to other objects (lines, polygons etc.) subject to the same scaling. Rounding also
occurs to the offset implied by textAlign() with parameters other than (LEFT,BOTTOM).

This problem only occurs with the default renderer, although text is of poor quality in
OPEN_GL and P3D.
Additional Comment #1 From Jo Wood 2008-06-05 01:26
edit]
Animates text surrounded by rectangle, but text placement is quantized
Additional Comment #2 From fry 2008-06-05 04:56
hm, will check into it, thanks for posting along with the attachment.
Additional Comment #3 From MrFeinberg 2009-09-05 11:25
See my patch for #866; I believe that will fix this, too.

http://dev.processing.org/bugs/attachment.cgi?id=336
This bug is now being tracked here.