Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting Colour fonts? (Black & White and Colour glyphs?) #35

Open
travisleithead opened this issue Sep 18, 2021 · 1 comment
Open

Comments

@travisleithead
Copy link
Member

(This is internal Microsoft feedback from a review of the spec by resident expert @PeterCon. Re-posting here with permission.)


Rendering: something I don’t see mentioned at all is colour fonts. A given OpenType font can potentially support BW and colour glyphs, and could even support alternate formats for colour glyphs (COLR table, SVG table, …). The choice of colour vs. BW doesn’t affect layout or line metrics (though it might affect glyph bounding boxes); but obviously it affects rendering. Canvas 2D context doesn’t seem to handle this currently itself, so does that constrain you? I may be overlooking something already there, but it seems like a gap.

@travisleithead
Copy link
Member Author

If CSS provides a property to configure/control this selection of b&w or colour glyphs (font-variant-alternates?) then this should be covered in the FormattedText data model. If not, then I would defer to the CSS WG to surface this via a CSS property rather than provide a unique way to do it for FormattedText alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant