Closed Bug 522945 Opened 16 years ago Closed 8 years ago

Canvas text drawing fails after maxWidth is used on first text draw

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- -

People

(Reporter: tthomps, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Build Identifier: If the first call to fillText() on a canvas context uses maxWidth, subsequent calls to fillText will not work. It looks like this may be a failure to correctly auto save-restore the context. Drawing a string without maxWidth on the first call to fillText will result in this bug being avoided as far as I can tell. If there are some cases where that is not accurate, a simple change of the fillStyle property or calling save/restore before a fillText should work. Reproducible: Always Steps to Reproduce: See attachment.
Status: UNCONFIRMED → NEW
blocking2.0: --- → alpha1
Ever confirmed: true
Changing blocking1.9.3: from alpha1 to beta1 per conversation with Joe Drew and Jeff Muizelaar. Still good to fix sooner rather than later, though.
blocking2.0: alpha1 → beta1
Bumping to beta 2.
blocking2.0: beta1+ → beta2+
Moving to betaN for triage to a specific milestone
blocking2.0: beta2+ → betaN+
Assignee: nobody → vladimir
Unless this is a regression, there's no reason this needs to specifically block Firefox 4.
blocking2.0: betaN+ → -
This bug has been fixed.
I have tested this bug with the latest version of firefox. It is not reproducible anymore.
Flags: needinfo?(milan)
Thanks!
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(milan)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: