Skip to content

Commit 397a83b

Browse files
committed
[css-fonts-4] Add small-caps value to font-synthesis property
This patch also migrates this property from css-fonts-3 to css-fonts-4. Discussion at https://lists.w3.org/Archives/Public/www-style/2015Jul/0463.html Resolution recorded at: https://lists.w3.org/Archives/Public/www-style/2015Aug/0109.html "RESOLVED: support small-caps in font-synthesis in Fonts 4"
1 parent b1227ec commit 397a83b

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

css-fonts-4/Overview.bs

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,33 @@ at least as dark as its predecessor. Only values between 1 - 999 are valid, and
451451

452452
TODO: Migrate this from level 3.
453453

454+
<h3 id="font-size-adjust-prop">Controlling synthetic faces: the 'font-synthesis' property</h3>
455+
456+
<pre class="propdef">
457+
Name: font-synthesis
458+
Value: none | [ weight || style || small-caps ]
459+
Initial: weight style small-caps
460+
Applies to: all elements
461+
Inherited: yes
462+
Percentages: N/A
463+
Computed value: as specified
464+
Media: visual
465+
Animatable: no
466+
</pre>
467+
468+
This property controls whether user agents are allowed to synthesize bold or oblique font
469+
faces when a font family lacks bold or italic faces. If 'weight' is not specified, user agents
470+
must not synthesize bold faces. If 'style' is not specified, user agents must not synthesize
471+
italic faces. If 'small-caps' is not specified, user agents must not synthesize small-caps faces.
472+
A value of 'none' disallows all synthetic faces.
473+
474+
<div class="example">
475+
<p>The style rule below disables the use of synthetically obliqued Arabic:</p>
476+
</p>
477+
<pre>*:lang(ar) { font-synthesis: none; }
478+
</pre>
479+
</div>
480+
454481
<h2 id="font-resources">Font Resources</h2>
455482

456483
<h3 id="src-desc">Font reference: the 'src' descriptor</h3>
@@ -1412,13 +1439,6 @@ of predefined CSS generic font families to cover these type styles.</p>
14121439
Issue: Add ''system-ui'' fingerprinting issue to Security and Privacy Considerations section
14131440
per <a href="https://lists.w3.org/Archives/Public/www-style/2015Aug/0051.html">discussion</a>.
14141441

1415-
<h2 id="font-synthesis-small-caps">New <code>small-caps</code> value for <code>font-synthesis</code></h2>
1416-
1417-
<p>Since small capitals are often synthesized for fonts lacking smalls-caps glyphs,
1418-
add a <code>small-caps</code> value to the <code>font-synthesis</code> property
1419-
to allow small-caps synthesis to be disabled.
1420-
(<a href="https://lists.w3.org/Archives/Public/www-style/2015Jul/0463.html">www-style discussion</a>)</p>
1421-
14221442
<h2 id="emoji-fallback">Font fallback for emoji codepoints</h2>
14231443

14241444
<p>Many codepoints supported by emoji fonts overlap with codepoints supported

0 commit comments

Comments
 (0)