Changeset 214415 in webkit


Ignore:
Timestamp:
Mar 27, 2017 9:18:33 AM (7 years ago)
Author:
mmaxfield@apple.com
Message:

Implement format specifier for variation fonts
https://bugs.webkit.org/show_bug.cgi?id=169327

Reviewed by Simon Fraser.

Source/WebCore:

Variation fonts require the format("woff-variations"), format("truetype-variations"),
and format("opentype-variations") format specifies in @font-face rules.

Test: fast/text/variations/font-face-format.html

  • platform/graphics/mac/FontCustomPlatformData.cpp:

(WebCore::FontCustomPlatformData::supportsFormat):

LayoutTests:

  • fast/text/variations/font-face-format-expected.html: Added.
  • fast/text/variations/font-face-format.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r214414 r214415  
     12017-03-27  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Implement format specifier for variation fonts
     4        https://bugs.webkit.org/show_bug.cgi?id=169327
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/text/variations/font-face-format-expected.html: Added.
     9        * fast/text/variations/font-face-format.html: Added.
     10
    1112017-03-27  Myles C. Maxfield  <mmaxfield@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r214414 r214415  
     12017-03-27  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Implement format specifier for variation fonts
     4        https://bugs.webkit.org/show_bug.cgi?id=169327
     5
     6        Reviewed by Simon Fraser.
     7
     8        Variation fonts require the format("woff-variations"), format("truetype-variations"),
     9        and format("opentype-variations") format specifies in @font-face rules.
     10
     11        Test: fast/text/variations/font-face-format.html
     12
     13        * platform/graphics/mac/FontCustomPlatformData.cpp:
     14        (WebCore::FontCustomPlatformData::supportsFormat):
     15
    1162017-03-27  Myles C. Maxfield  <mmaxfield@apple.com>
    217
  • trunk/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp

    r214364 r214415  
    6464        || equalLettersIgnoringASCIICase(format, "woff2")
    6565#endif
     66#if ENABLE(VARIATION_FONTS)
     67        || equalLettersIgnoringASCIICase(format, "woff-variations")
     68        || equalLettersIgnoringASCIICase(format, "truetype-variations")
     69        || equalLettersIgnoringASCIICase(format, "opentype-variations")
     70#endif
    6671        || equalLettersIgnoringASCIICase(format, "woff");
    6772}
Note: See TracChangeset for help on using the changeset viewer.