<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>233496</bug_id>
          
          <creation_ts>2021-11-25 08:13:32 -0800</creation_ts>
          <short_desc>Support for COLRv1 color vector fonts</short_desc>
          <delta_ts>2024-09-18 20:57:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Text</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominik Röttsches (drott)">d-r</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akiem</cc>
    
    <cc>d-r</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>rsheeter</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>woodlxf00</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1817808</commentid>
    <comment_count>0</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2021-11-25 08:13:32 -0800</bug_when>
    <thetext>This is a feature request for COLRv1 color gradient vector fonts. It&apos;d be great to see support in WebKit, after Google Chrome plans to ship support for this format, and Mozilla and Microsoft have expressed a positive standards position on the format. It also integrates very nicely with WebKit&apos;s recent addition of supporting font-palette. Thanks for considering.

Spec: 
https://github.com/googlefonts/colr-gradients-spec/
https://docs.microsoft.com/en-us/typography/opentype/otspec190/ot190beta

Examples:
https://github.com/googlefonts/color-fonts

Font Production Tool for COLRv1:
https://github.com/googlefonts/nanoemoji

Firefox Tracking Bug &amp; Standards Position:
https://bugzilla.mozilla.org/show_bug.cgi?id=1740525
https://mozilla.github.io/standards-positions/#font-colrv1

Google Chrome Tracking Bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=1170733

Previous discussion on webkit-dev:
https://lists.webkit.org/pipermail/webkit-dev/2021-March/031765.html
https://lists.webkit.org/pipermail/webkit-dev/2021-May/031839.html
https://lists.webkit.org/pipermail/webkit-dev/2021-April/031789.html (Peter Constable&apos;s (MS) response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1817866</commentid>
    <comment_count>1</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2021-11-25 17:27:05 -0800</bug_when>
    <thetext>Support for this would be in the platform text libraries, not WebKit itself. Unless I’m misunderstanding?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818150</commentid>
    <comment_count>2</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2021-11-29 01:27:15 -0800</bug_when>
    <thetext>&gt; Support for this would be in the platform text libraries, not WebKit itself. Unless I’m misunderstanding?

The intention of filing this issue is to have format support in WebKit, as a feature available on the web. Whether that supports originates from platform libraries (as it&apos;s done traditionally through CoreText in Safari), or in higher layers is an architectural choice: It&apos;s probably possible to implement support for CORLv1 based on FreeType and the platform graphics contexts that WebKit&apos;s architecture provides an abstraction for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819703</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-02 08:14:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/85971830&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1844164</commentid>
    <comment_count>4</comment_count>
    <who name="">akiem</who>
    <bug_when>2022-02-21 04:44:55 -0800</bug_when>
    <thetext>From a type designer point of view, it would be great to have a better support of the COLRv1 table. For me, one of the key features it provides is not the colors, but that we can also use it as a more advanced glyf table. 

Using only the foreground color, you get everything that the current glyf table provides + a lot of other stuff like transformations, compositing, blending, layering. This makes COLRv1 very different from other color-related tables like SVG, COLOR (version0), six...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955344</commentid>
    <comment_count>5</comment_count>
    <who name="Woody Lee">woodlxf00</who>
    <bug_when>2023-05-14 22:33:24 -0700</bug_when>
    <thetext>OpenType 1.9 has been released for a while now.
https://learn.microsoft.com/en-us/typography/opentype/spec/

And both Chrome and Firefox has supported it.
https://caniuse.com/colr-v1

Is it any change on position?
Will it been implemented in future milestones?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955451</commentid>
    <comment_count>6</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2023-05-15 10:37:48 -0700</bug_when>
    <thetext>If it existed, implementation would be in the platform text libraries in macOS/iOS, not in WebKit. We cannot comment about that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2061331</commentid>
    <comment_count>7</comment_count>
    <who name="Woody Lee">woodlxf00</who>
    <bug_when>2024-09-18 20:57:52 -0700</bug_when>
    <thetext>I don&apos;t know whether it depends on OS or not.
But how did Chrome do with it in Mac OS?

Tested with https://colrv1-emoji-vs-cbdt.glitch.me/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>