WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
38463
Fails on Canvas test case:
http://philip.html5.org/tests/canvas/suite/tests/2d.text.draw.baseline.top.html
https://bugs.webkit.org/show_bug.cgi?id=38463
Summary
Fails on Canvas test case: http://philip.html5.org/tests/canvas/suite/tests/2...
Chang Shu
Reported
2010-05-03 07:38:08 PDT
http://philip.html5.org/tests/canvas/suite/tests/2d.text.draw.baseline.top.html
Run above test case on Safari. Actual result: failed Expected result: pass The same test case passes on Firefox4.6.
Attachments
Add attachment
proposed patch, testcase, etc.
Matthew Delaney
Comment 1
2010-05-11 15:31:52 PDT
Also fails on both Opera 10.53 and Chrome 5.0.375.38 beta on Snow Leopard.
Robert Hogan
Comment 2
2013-01-29 11:10:53 PST
I'd love to know what's going on with our font metrics here. The reason we fail this and the other canvas baseline tests is down to the ascent and descent we calculate for the font before drawing it. I imagine this varies between platforms but I've tested it on Chromium Linux. Tony - this must be FontMetrics 101, can you shed any light on why Firefox and Chromium Linux (for example) return different ascent/descent for the same font? The person at
http://mudcu.be/journal/2011/01/html5-typographic-metrics/#baselineCanvas
looked into this a bit and concluded it was 'invisible space'. :)
Tony Chang
Comment 3
2013-01-29 12:21:43 PST
I actually know very little about font metrics and don't know where this extra 'invisible space' comes from. Levi or Emil probably know more.
Levi Weintraub
Comment 4
2013-01-31 10:57:23 PST
(In reply to
comment #3
)
> I actually know very little about font metrics and don't know where this extra 'invisible space' comes from. Levi or Emil probably know more.
I'm afraid this one is beyond my expertise as well :-/
Ahmad Saleem
Comment 5
2022-06-01 15:58:34 PDT
I am still able to reproduce this bug using the test link in
Comment 01
in Safari 15.5 on macOS 12.4. All other browsers like Chrome Canary 104 and Firefox Nightly 103 pass the test. Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug