New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 703332 link

Starred by 18 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Oct 30
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Task

Blocked on:
issue 605334
issue 617379
issue 758209


Participants' hotlists:
layout-backlog

Show other hotlists

Other hotlists containing this issue:
Hotlist-1


Sign in to add a comment

[meta] Platform independent color font support

Project Member Reported by e...@chromium.org, Mar 20 2017

Issue description

Meta bug for the various color font formats.

Today we support the Apple (sbix) and Google (CBDT/CBLT) bitmap color font formats across all platforms for system and webfonts and the Microsoft color font format on Windows for system fonts.

Ideally we'd support COLR/CPAL across all platforms (and not just windows) for both system and web fonts.

See the individual blocked on bugs for the various implementations:
 Issue 605334  for sbix (Apple color fonts, bitmap)
 Issue 617379  for COLR/CPAL (Microsoft color fonts, vector)
 Issue 758209  for CBDT/CBLT (Google color fonts, bitmap)
Issue 306078 for SVG (Adobe color fonts, svg)

Note that we currently have no plans to add support for SVG fonts. Please see the individual issues for each format for details and use those issues for discussion.
 

Comment 1 by e...@chromium.org, Mar 20 2017

Blockedon: 702430

Comment 2 by e...@chromium.org, Mar 20 2017

Blockedon: 617379

Comment 3 by e...@chromium.org, Mar 20 2017

Blockedon: 306078

Comment 4 Deleted

Comment 5 by ebra...@gnu.org, Mar 20 2017

And an implementation for SBIX I believe, if there is any chance Issue 670480 get progressed over the coming year that will be needed also, it perhaps fixes Issue 596223 also by not relying much to CoreText also.

Comment 6 by j...@fontself.com, Mar 22 2017

You can add that issue to the list maybe? "Apple color font is not supported when served as a web font" https://bugs.chromium.org/p/chromium/issues/detail?id=605334

Comment 7 by e...@chromium.org, Mar 22 2017

Blockedon: 605334
Thanks!

Comment 8 by e...@chromium.org, Mar 22 2017

Description: Show this description

Comment 9 by ebra...@gnu.org, Mar 26 2017

See also:  Issue 617403 
(Putting COLR/CPAL layers separately on pdf out should also be considered)

Comment 10 by ebra...@gnu.org, Mar 26 2017

See also: Issue 625191
(would be nice to fix emoji issue on the big sizes on the meanwhile also)

Comment 11 by js...@chromium.org, Mar 31 2017

> we'd support COLR and SBIX across all platforms.

Why didn't the above sentence mention CBDT/CBLC fonts as if it's already supported across platforms?  

BTW, FreeType has been a part of Windows Chrome (PDFium uses it). Now with Dominik's recent change, Blink can use FreeType for variational fonts (IIUC). Can it be made to use FreeType for sbix, CBDT/CBLC fonts where DW does not support them? 

Comment 12 by e...@chromium.org, Mar 31 2017

sbix is more widely used than CBDT and if we're going to support a bitmap/png format across all platforms I'd prefer to start with the most popular one.

Similarly I'd rather not to add support for bitmap fonts on windows until we've added support for an outline glyphs format (COLR) to other platforms. Bitmap fonts have a lot of problems and it would be a shame to regress now that we've finally almost entirely switched away from them for monochrome fonts.

Comment 13 by ebra...@gnu.org, Mar 31 2017

Cc: bunge...@chromium.org
Great, now that there is an agreement on having freetype on different platforms, would be nice someone to go to progress http://savannah.nongnu.org/bugs/?44689 there is a patch associated with it, see the comments #6 #7 there, also Ben already reviewed it.
If we have FreeType everywhere (which I like to), then sbix/CBDT work fine and transparently to the client.  Skia already has the support.  For SVG and COLR/CPAL, we're working on adding them to HarfBuzz, then hooking up to Skia.

Comment 15 Deleted

Comment 16 by e...@chromium.org, Apr 18 2017

Blockedon: -702430

Comment 17 by e...@chromium.org, Apr 18 2017

Description: Show this description

Comment 18 by js...@chromium.org, Jul 19 2017

> sbix is more widely used than CBDT and if we're going to support a bitmap/png format across all platforms I'd prefer to start with the most popular one.

Well, CBDT/CBDLT is a part of the Opentype standard while sbix is not (yet). Anyway, as Behdad mentioned in comment 14, it does not really matter because both can be supported with FreeType on all platforms. 


Comment 19 by e...@chromium.org, Jul 19 2017

Sounds good. I'd be happy with CBDT/CBLT and COLR/CPAL.
Thanks jshin.
sbix is also part of standard now.  I think we should support all four formats.  Microsoft is doing, Firefox is doing, and Apple is probably working on doing. 

Comment 21 by drott@chromium.org, Aug 23 2017

Blockedon: 758209

Comment 22 by drott@chromium.org, Aug 23 2017

I've filed  issue 758209  for starting by running CBDT/CBLC through FreeType on all platforms. 

Comment 23 by e...@chromium.org, Nov 8 2017

Components: Blink>Fonts

Comment 24 by drott@chromium.org, Feb 23 2018

Sbix and cbdt/cblc are fixed now in  issue 605334  and  issue 758209 . A COLR/CPAL foundation is underway in FreeType https://savannah.nongnu.org/bugs/?44689 but the latest status on this is a little unclear.

Comment 25 by e...@chromium.org, Mar 6 2018

Description: Show this description
Since not many OT-SVG comments are in this “meta bug,” let me point out https://bugs.chromium.org/p/chromium/issues/detail?id=306078 has been updated with important notes on a minimal profile for OT-SVG & comments on Adobe apps’ adoption of that format.
(Sairus Patel from Adobe)

Comment 27 by e...@chromium.org, Mar 6 2018

Thanks for pointing that out. Let's try to keep the discussion in the format specific bugs though.

Comment 28 by ebra...@gnu.org, Mar 29 2018

Just FYI, I've added table parsing for all sbix/SVG/COLR/CPAL (in addition to the existing but outdated CBDT/CBLC) to harfbuzz (not rendering of course, and doesn't have public API yet also). Just saying if anyone interested to implement the remaining ones in cross-platform manner, harfbuzz probably is a good place to start the effort.
Blockedon: -306078
Status: Fixed (was: Available)

Sign in to add a comment