Skip to content

Commit e083fe6

Browse files
committed
[css-fonts-4] Add ui-serif, ui-monospaced, and ui-rounded
Closes #4107
1 parent 2ef7fe1 commit e083fe6

File tree

4 files changed

+53
-4
lines changed

4 files changed

+53
-4
lines changed

css-fonts-4/Overview.bs

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,6 @@ Generic font families</h4>
343343
A cross-platform UA should use different fonts on its different supported platforms.
344344
The purpose of ''system-ui'' is to allow web content
345345
to integrate with the look and feel of the native OS.
346-
On platforms which have a collection of system user interface fonts
347-
(e.g. for different languages),
348-
user agents may treat ''system-ui'' as a virtual font
349-
which encompasses all the relevant platform user interface fonts.
350346

351347
<div class="example">
352348
As with other generic font families,
@@ -402,6 +398,59 @@ Generic font families</h4>
402398
Fang Song is often used for official Chinese Government documents.
403399
</dl>
404400

401+
<h4 id="standard-font-families">
402+
Standard font families</h4>
403+
404+
Standard font families are font families which are expected to be
405+
interoperable between browsers, but which may not exist on every platform
406+
or operating system. They are not required to map to a concrete font
407+
face. Just like generic font families, standard font families may be a
408+
composite face combining different typefaces based on such things as the
409+
Unicode range of the character, the content language of the containing
410+
element, user preferences, system settings, etc.
411+
412+
<dl dfn-for="font-family,<generic-family>" dfn-type=value>
413+
<dt id="ui-serif-def"><dfn>ui-serif</dfn>
414+
<dd>
415+
This font family is used for the serif variant of the system's
416+
user interface. The purpose of ''ui-serif'' is to allow web
417+
content to integrate with the look and feel of the native OS.
418+
419+
<div class="example">
420+
<figure>
421+
<img alt="sample ui-serif font" src="images/ui-serif.png" >
422+
<figcaption>Sample ui-serif font on macOS Catalina and iOS 13: New York</figcaption>
423+
</figure>
424+
</div>
425+
426+
<dt id="ui-monospaced-def"><dfn>ui-monospaced</dfn>
427+
<dd>
428+
This font family is used for the monospaced variant of the
429+
system's user interface. The purpose of ''ui-monospaced'' is to
430+
allow web content to integrate with the look and feel of the
431+
native OS.
432+
433+
<div class="example">
434+
<figure>
435+
<img alt="sample ui-monospaced font" src="images/ui-monospaced.png" >
436+
<figcaption>Sample ui-monospaced font on macOS Catalina and iOS 13: SF Mono</figcaption>
437+
</figure>
438+
</div>
439+
440+
<dt id="ui-rounded-def"><dfn>ui-rounded</dfn>
441+
<dd>
442+
This font family is used for the rounded variant of the system's
443+
user interface. The purpose of ''ui-rounded'' is to allow web
444+
content to integrate with the look and feel of the native OS.
445+
446+
<div class="example">
447+
<figure>
448+
<img alt="sample ui-rounded font" src="images/ui-rounded.png" >
449+
<figcaption>Sample ui-rounded font on macOS Catalina and iOS 13: SF Rounded</figcaption>
450+
</figure>
451+
</div>
452+
</dl>
453+
405454
<h3 id="font-weight-prop">Font weight: the 'font-weight!!property' property</h3>
406455

407456
<pre class="propdef">

css-fonts-4/images/ui-monospaced.png

23.9 KB
Loading

css-fonts-4/images/ui-rounded.png

24 KB
Loading

css-fonts-4/images/ui-serif.png

23.3 KB
Loading

0 commit comments

Comments
 (0)