Apply well-known-axis variation values at the right time in preparePlatformFont()
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2017 07:30:27 +0000 (07:30 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2017 07:30:27 +0000 (07:30 +0000)
commit2ce1df9124ac0cf43848e09c73f09b839275033c
treecaf64d4d45050dccd11529ce3ffb49309ae2a8c5
parent3aaa81b59106a21eecaa7a17d9833f84225d6942
Apply well-known-axis variation values at the right time in preparePlatformFont()
https://bugs.webkit.org/show_bug.cgi?id=168896

Reviewed by Jon Lee.

Source/WebCore:

Simply plumb the FontSelectionRequest to the place where font variations are implemented.

Test: fast/text/variations/font-selection-properties.html

* platform/graphics/FontCache.h:
* platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::preparePlatformFont):
(WebCore::fontWithFamily):
(WebCore::FontCache::createFontPlatformData):
(WebCore::FontCache::systemFallbackForCharacters):
* platform/graphics/mac/FontCustomPlatformData.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):

LayoutTests:

* fast/text/variations/font-selection-properties-expected.html: Added.
* fast/text/variations/font-selection-properties.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@213505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/variations/font-selection-properties-expected.html [new file with mode: 0644]
LayoutTests/fast/text/variations/font-selection-properties.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/FontCache.h
Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp
Source/WebCore/platform/spi/cocoa/CoreTextSPI.h