RESOLVED FIXED 146045
[Cocoa] Draw fonts at their native sizes instead of scaling a 1pt font
https://bugs.webkit.org/show_bug.cgi?id=146045
Summary [Cocoa] Draw fonts at their native sizes instead of scaling a 1pt font
Myles C. Maxfield
Reported 2015-06-16 21:24:49 PDT
[Cocoa] Draw fonts at their native sizes instead of scaling a 1pt font
Attachments
Patch (2.96 KB, patch)
2015-06-16 21:40 PDT, Myles C. Maxfield
darin: review+
Patch (40.98 KB, patch)
2015-08-27 12:17 PDT, Myles C. Maxfield
no flags
Patch (45.27 KB, patch)
2015-08-27 12:37 PDT, Myles C. Maxfield
no flags
Patch (50.98 KB, patch)
2015-08-27 22:05 PDT, Myles C. Maxfield
buildbot: commit-queue-
Archive of layout-test-results from ews101 for mac-mavericks (1.21 MB, application/zip)
2015-08-27 23:01 PDT, Build Bot
no flags
Myles C. Maxfield
Comment 1 2015-06-16 21:40:06 PDT
Myles C. Maxfield
Comment 2 2015-06-16 21:43:22 PDT
Comment on attachment 254998 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254998&action=review > Source/WebCore/ChangeLog:9 > + In his WWDC talk[1], Antonio Cavedoni describes how laying out a font at a particular point size > + may yield different visual results than laying out a font at a 1pt size into a scaled context. This patch is about drawing, not layout.
Sam Weinig
Comment 3 2015-06-17 05:54:40 PDT
Is this actually true for any fonts other than the system fonts? If so, can we have a test case?
Darin Adler
Comment 4 2015-06-17 15:46:36 PDT
Comment on attachment 254998 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254998&action=review > Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm:-369 > - CGAffineTransform matrix = useLetterpressEffect || platformData.isColorBitmapFont() ? CGAffineTransformIdentity : CGAffineTransformMakeScale(fontSize, fontSize); Did you test these special cases? Does the letterpress effect still work after this? Do color bitmap fonts still work after this?
Myles C. Maxfield
Comment 5 2015-08-27 11:27:01 PDT
On my Yosemite machine, the only color bitmap font is AppleColorEmoji.
Myles C. Maxfield
Comment 6 2015-08-27 11:32:55 PDT
I can't remember if I had already verified this earlier, so I'm re-verifying now. Verified that color bitmap fonts work properly.
Myles C. Maxfield
Comment 7 2015-08-27 11:35:54 PDT
Letterpress can be tested with text-decoration: -webkit-letterpress, but I don't have an iOS build handy to test this on. I'll test later today when I'm at the office.
Myles C. Maxfield
Comment 8 2015-08-27 12:17:31 PDT
Myles C. Maxfield
Comment 9 2015-08-27 12:37:37 PDT
Myles C. Maxfield
Comment 10 2015-08-27 22:05:49 PDT
Myles C. Maxfield
Comment 11 2015-08-27 22:58:59 PDT
Verified that letterpress still works.
Build Bot
Comment 12 2015-08-27 23:01:55 PDT
Comment on attachment 260121 [details] Patch Attachment 260121 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/115374 New failing tests: imported/mozilla/svg/text/simple-fill-gradient.svg imported/mozilla/svg/text-layout-06.svg fast/multicol/newmulticol/spanner2.html fast/regions/region-overflow-auto-overflow-visible.html svg/custom/hidpi-masking-clipping.svg fast/text/empty-shadow.html imported/mozilla/svg/text-scale-02.svg
Build Bot
Comment 13 2015-08-27 23:01:58 PDT
Created attachment 260127 [details] Archive of layout-test-results from ews101 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-mavericks Platform: Mac OS X 10.9.5
Myles C. Maxfield
Comment 14 2015-08-27 23:04:18 PDT
Note You need to log in before you can comment on or make changes to this bug.