Skip to content

[css-fonts] system-ui-serif, system-ui-monospace, and system-ui-rounded #4107

@litherum

Description

@litherum

Hi!

This year, Apple has released 3 fonts in macOS and iOS. Here are what they look like:

New York:
Screen Shot 2019-07-11 at 10 38 00 PM

SF Mono
Screen Shot 2019-07-11 at 10 38 18 PM

SF Rounded
Screen Shot 2019-07-11 at 10 38 30 PM

We've gotten requests to use these three fonts on the Web. However, we don't want to treat these fonts just like any other font. On macOS and iOS, these fonts are only available by running special AppKit/UIKit functions, and don't appear in font enumerations. This choice is intentional, as these fonts are not intended to be document fonts for regular content. Instead, they represent the identity of the platforms themselves.

Because of the requests, we'd like to propose adding these fonts to the CSS Fonts spec as siblings to system-ui, and including some explanatory text in the spec about the difference between these fonts and any other installed fonts on the system.

Android has Droid Serif and Droid Sans Mono which would map to system-ui-serif and system-ui-monospaced. I don't know if Windows has any analogues with Segoe UI.

We've recently implemented support for these in Safari behind an SPI flag, off by default. This is an SPI, not an experimental feature, so Safari users can't even enable the fonts if they wanted to just yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions