[Webkit-unassigned] [Bug 56925] New: Canvas text measurements wrong
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 23 08:29:11 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=56925
Summary: Canvas text measurements wrong
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://jsfiddle.net/k44x3/1/
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Canvas
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: hannasm at gmail.com
CC: mdelaney at apple.com
I've created a good test case for this issue at jsfiddle url.
http://jsfiddle.net/k44x3/1/
Using a dom / javascript based text measurement approach, safari yields the actual width of the text.
Using canvas based approach the text measurement jumps around and becomes wildly inaccurate as text length increases.
Tested in nightly snapshot WebKit-SVN-r80840
Oddly, versions of chrome from the oldest version 1.0 to latest 10.0 handle these measurements fine, and I thought chrome integrated webkit so don't ask me how that happened. MOST versions of chrome i tested on were reporting webkit version 534 instead of the 533 that is reported for safari (by jquery browser detection.
This test case generates accurate measurements in firefox and opera versions i've tested too.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list