RESOLVED FIXED64747
Specify a cascade list consisting of the last resort font for Core Text
https://bugs.webkit.org/show_bug.cgi?id=64747
Summary Specify a cascade list consisting of the last resort font for Core Text
mitz
Reported 2011-07-18 13:38:37 PDT
Specify a cascade list consisting of the last resort font for Core Text
Attachments
Patch (4.21 KB, patch)
2011-07-18 13:45 PDT, mitz
sam: review+
actual result for broken-ideograph-small-caps on Chromium Mac 10.5 (16.64 KB, image/png)
2011-07-18 16:20 PDT, Ryosuke Niwa
no flags
mitz
Comment 1 2011-07-18 13:40:29 PDT
This would prevent Core Text from uselessly going through its longer default cascade list. WebKit never uses the results of Core Text’s fallback logic anyway.
mitz
Comment 2 2011-07-18 13:45:34 PDT
mitz
Comment 3 2011-07-18 14:11:42 PDT
Darin Adler
Comment 4 2011-07-18 14:36:28 PDT
Comment on attachment 101199 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=101199&action=review > Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm:183 > +static CTFontDescriptorRef cascadeToLastResortFontDescriptor() > +{ > + static CTFontDescriptorRef descriptor; > + if (descriptor) > + return descriptor; I like writing the two-function form of this sort of thing rather than the early return version. > Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm:198 > + if (m_CTFont) > return m_CTFont.get(); Same comment here.
Ryosuke Niwa
Comment 5 2011-07-18 16:19:04 PDT
The following tests started failing on Chromium Mac 10.5 after this patch was landed: fast/blockflow/broken-ideograph-small-caps.html fast/blockflow/broken-ideographic-font.html fast/css/custom-font-xheight.html In particular, fast/css/custom-font-xheight.html is also failing on Mac Leopard as well: http://build.webkit.org/results/Leopard%20Intel%20Release%20(Tests)/r91215%20(34147)/results.html
Ryosuke Niwa
Comment 6 2011-07-18 16:20:39 PDT
Created attachment 101230 [details] actual result for broken-ideograph-small-caps on Chromium Mac 10.5 Looking at the actual result for broken-ideograph-small-caps, something is going wrong here.
Ryosuke Niwa
Comment 7 2011-07-18 16:22:23 PDT
mitz
Comment 8 2011-07-18 16:57:24 PDT
I will build on Leopard and see if I can reproduce any of the failures.
Note You need to log in before you can comment on or make changes to this bug.