Bug 161877

Summary: [Cocoa] Unify font's ascent, descent, and x-height between macOS and iOS
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, dino, jonlee, rniwa, simon.fraser, thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
WIP
none
Patch
none
Archive of layout-test-results from ews107 for mac-yosemite-wk2
none
Patch
none
Patch
none
Patch
none
Archive of layout-test-results from ews126 for ios-simulator-elcapitan-wk2
none
Patch simon.fraser: review+

Myles C. Maxfield
Reported 2016-09-12 15:33:33 PDT
[Cocoa] Unify font's ascent, descent, and x-height between macOS and iOS
Attachments
Patch (9.05 KB, patch)
2016-09-12 15:40 PDT, Myles C. Maxfield
no flags
Patch (9.02 KB, patch)
2016-09-12 16:24 PDT, Myles C. Maxfield
no flags
Patch (9.99 KB, patch)
2016-09-12 16:29 PDT, Myles C. Maxfield
no flags
WIP (228.28 KB, patch)
2016-09-12 17:14 PDT, Myles C. Maxfield
no flags
Patch (228.28 KB, patch)
2016-09-12 19:19 PDT, Myles C. Maxfield
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.13 MB, application/zip)
2016-09-12 20:12 PDT, Build Bot
no flags
Patch (228.30 KB, patch)
2016-09-12 20:13 PDT, Myles C. Maxfield
no flags
Patch (230.92 KB, patch)
2016-09-12 20:17 PDT, Myles C. Maxfield
no flags
Patch (232.13 KB, patch)
2016-09-12 20:26 PDT, Myles C. Maxfield
no flags
Archive of layout-test-results from ews126 for ios-simulator-elcapitan-wk2 (7.21 MB, application/zip)
2016-09-12 21:40 PDT, Build Bot
no flags
Patch (261.59 KB, patch)
2016-09-12 22:14 PDT, Myles C. Maxfield
simon.fraser: review+
Myles C. Maxfield
Comment 1 2016-09-12 15:40:51 PDT
Myles C. Maxfield
Comment 2 2016-09-12 16:24:04 PDT
Myles C. Maxfield
Comment 3 2016-09-12 16:29:13 PDT
Myles C. Maxfield
Comment 4 2016-09-12 17:14:25 PDT
Myles C. Maxfield
Comment 5 2016-09-12 19:19:28 PDT
Build Bot
Comment 6 2016-09-12 20:12:03 PDT
Comment on attachment 288658 [details] Patch Attachment 288658 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2063120 New failing tests: imported/blink/svg/text/obb-paintserver.html fast/text/emoji.html svg/W3C-SVG-1.1-SE/text-intro-05-t.svg
Build Bot
Comment 7 2016-09-12 20:12:07 PDT
Created attachment 288660 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Myles C. Maxfield
Comment 8 2016-09-12 20:13:15 PDT
Myles C. Maxfield
Comment 9 2016-09-12 20:17:23 PDT
Myles C. Maxfield
Comment 10 2016-09-12 20:26:07 PDT
Build Bot
Comment 11 2016-09-12 21:40:30 PDT
Comment on attachment 288663 [details] Patch Attachment 288663 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2063461 New failing tests: editing/selection/vertical-rl-rtl-extend-line-forward-p.html tables/mozilla/bugs/bug55527.html editing/selection/vertical-rl-rtl-extend-line-backward-br.html editing/selection/vertical-rl-rtl-extend-line-forward-br.html editing/selection/vertical-rl-rtl-extend-line-backward-p.html svg/text/text-hkern-on-vertical-text.svg svg/custom/glyph-transformation-with-hkern.svg fast/text/whitespace/pre-wrap-spaces-after-newline.html svg/custom/repaint-shadow.svg svg/text/text-vkern-on-horizontal-text.svg svg/W3C-SVG-1.1-SE/coords-units-03-b.svg
Build Bot
Comment 12 2016-09-12 21:40:34 PDT
Created attachment 288673 [details] Archive of layout-test-results from ews126 for ios-simulator-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-elcapitan-wk2 Platform: Mac OS X 10.11.5
Myles C. Maxfield
Comment 13 2016-09-12 22:14:20 PDT
Simon Fraser (smfr)
Comment 14 2016-09-13 11:07:20 PDT
Comment on attachment 288675 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=288675&action=review > LayoutTests/ChangeLog:8 > + Updating expected results. Are any of the iOS results now identical to the Mac results and could be removed? Do we also need to have different iOS 9 results?
Myles C. Maxfield
Comment 15 2016-09-13 15:32:59 PDT
Comment on attachment 288675 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=288675&action=review >> LayoutTests/ChangeLog:8 >> + Updating expected results. > > Are any of the iOS results now identical to the Mac results and could be removed? > > Do we also need to have different iOS 9 results? Unfortunately not. There are still other things in the text system which differentiates the two platforms. This patch moves them closer together, but not all the way together. No need for iOS 9-specific results. The results for this stuff is the same on both OSes.
Simon Fraser (smfr)
Comment 16 2016-09-13 15:34:35 PDT
Comment on attachment 288675 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=288675&action=review > LayoutTests/imported/blink/svg/text/obb-paintserver-expected.html:24 > + <rect y="299" width="100%" height="1" fill="black"/> > + <rect y="399" width="100%" height="1" fill="black"/> Why these changes? > LayoutTests/imported/blink/svg/text/obb-paintserver.html:24 > + <rect y="299" width="100%" height="1" fill="black"/> > + <rect y="399" width="100%" height="1" fill="black"/> Ditto
Myles C. Maxfield
Comment 17 2016-09-13 15:37:52 PDT
(In reply to comment #16) > Comment on attachment 288675 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=288675&action=review > > > LayoutTests/imported/blink/svg/text/obb-paintserver-expected.html:24 > > + <rect y="299" width="100%" height="1" fill="black"/> > > + <rect y="399" width="100%" height="1" fill="black"/> > > Why these changes? > > > LayoutTests/imported/blink/svg/text/obb-paintserver.html:24 > > + <rect y="299" width="100%" height="1" fill="black"/> > > + <rect y="399" width="100%" height="1" fill="black"/> > > Ditto Because the advances changed slightly, the contents got pushed out slightly from the text, thereby revealing 1px fringes around the text from our text drawing code. These divs are 1 pixel tall and cover the fringes.
Myles C. Maxfield
Comment 18 2016-09-13 15:38:14 PDT
(In reply to comment #17) > (In reply to comment #16) > > Comment on attachment 288675 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=288675&action=review > > > > > LayoutTests/imported/blink/svg/text/obb-paintserver-expected.html:24 > > > + <rect y="299" width="100%" height="1" fill="black"/> > > > + <rect y="399" width="100%" height="1" fill="black"/> > > > > Why these changes? > > > > > LayoutTests/imported/blink/svg/text/obb-paintserver.html:24 > > > + <rect y="299" width="100%" height="1" fill="black"/> > > > + <rect y="399" width="100%" height="1" fill="black"/> > > > > Ditto > > Because the advances changed slightly, the contents got pushed out slightly > from the text, thereby revealing 1px fringes around the text from our text > drawing code. These divs are 1 pixel tall and cover the fringes. s/advances changed/ascent and descent changed/
Myles C. Maxfield
Comment 19 2016-09-13 15:40:55 PDT
Note You need to log in before you can comment on or make changes to this bug.