Skip to content

Commit ec5e7c9

Browse files
committed
[css-fonts-4] Break up font-synthesis into longhands
w3c#1641
1 parent 3109214 commit ec5e7c9

File tree

1 file changed

+120
-15
lines changed

1 file changed

+120
-15
lines changed

css-fonts-4/Overview.bs

Lines changed: 120 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,12 +1303,102 @@ Shorthand font property: the 'font' property</h3>
13031303
</pre>
13041304
</div>
13051305

1306-
<h3 id="font-synthesis-prop">
1307-
Controlling synthetic faces: the 'font-synthesis' property</h3>
1306+
<h3 id="font-synthesis">
1307+
Controlling synthetic faces</h3>
1308+
1309+
<h4 id="font-synthesis-weight">
1310+
Controlling synthesized bold: The 'font-synthesis-weight' property</h4>
1311+
1312+
<pre class="propdef">
1313+
Name: font-synthesis-weight
1314+
Value: auto | none
1315+
Initial: auto
1316+
Applies to: all elements
1317+
Inherited: yes
1318+
Percentages: N/A
1319+
Computed value: as specified
1320+
Media: visual
1321+
Animatable: yes
1322+
</pre>
1323+
1324+
This property controls whether user agents are allowed
1325+
to synthesize bold font faces
1326+
when a font family lacks bold faces.
1327+
1328+
<dl dfn-for=font-synthesis-weight dfn-type=value>
1329+
<dt><dfn>auto</dfn>
1330+
<dd>
1331+
Synthesis of bold faces is allowed
1332+
1333+
<dt><dfn>none</dfn>
1334+
<dd>
1335+
Synthesis of bold faces is not allowed
1336+
</dl>
1337+
1338+
<h4 id="font-synthesis-style">
1339+
Controlling synthesized oblique: The 'font-synthesis-style' property</h4>
1340+
1341+
<pre class="propdef">
1342+
Name: font-synthesis-style
1343+
Value: auto | none
1344+
Initial: auto
1345+
Applies to: all elements
1346+
Inherited: yes
1347+
Percentages: N/A
1348+
Computed value: as specified
1349+
Media: visual
1350+
Animatable: yes
1351+
</pre>
1352+
1353+
This property controls whether user agents are allowed
1354+
to synthesize oblique font faces
1355+
when a font family lacks oblique faces.
1356+
1357+
<dl dfn-for=font-synthesis-style dfn-type=value>
1358+
<dt><dfn>auto</dfn>
1359+
<dd>
1360+
Synthesis of oblique faces is allowed
1361+
1362+
<dt><dfn>none</dfn>
1363+
<dd>
1364+
Synthesis of oblique faces is not allowed
1365+
</dl>
1366+
1367+
<h4 id="font-synthesis-small-caps">
1368+
Controlling synthesized small caps: The 'font-synthesis-small-caps' property</h4>
1369+
1370+
<pre class="propdef">
1371+
Name: font-synthesis-small-caps
1372+
Value: auto | none
1373+
Initial: auto
1374+
Applies to: all elements
1375+
Inherited: yes
1376+
Percentages: N/A
1377+
Computed value: as specified
1378+
Media: visual
1379+
Animatable: yes
1380+
</pre>
1381+
1382+
This property controls whether user agents are allowed
1383+
to synthesize small caps font faces
1384+
when a font family lacks small caps faces.
1385+
1386+
<dl dfn-for=font-synthesis-small-caps dfn-type=value>
1387+
<dt><dfn>auto</dfn>
1388+
<dd>
1389+
Synthesis of small caps faces is allowed
1390+
1391+
<dt><dfn>none</dfn>
1392+
<dd>
1393+
Synthesis of small caps faces is not allowed
1394+
</dl>
1395+
1396+
<h4 id="font-synthesis">
1397+
Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
13081398

13091399
<pre class="propdef">
13101400
Name: font-synthesis
1311-
Value: none | [ weight || style || small-caps ]
1401+
Value: none | [ weight || style ]
13121402
Initial: weight style small-caps
13131403
Applies to: all elements
13141404
Inherited: yes
@@ -1318,18 +1408,33 @@ Controlling synthetic faces: the 'font-synthesis' property</h3>
13181408
Animatable: no
13191409
</pre>
13201410

1321-
This property controls whether user agents are allowed
1322-
to synthesize bold, oblique or small-cap font faces
1323-
when a font family lacks bold, italic or small-cap faces.
1324-
The initial value allows all types of synthesis.
1325-
If ''weight'' is not specified,
1326-
user agents must <em>not</em> synthesize bold faces.
1327-
If ''style'' is not specified,
1328-
user agents must <em>not</em> synthesize italic faces.
1329-
If ''small-caps'' is not specified,
1330-
user agents must <em>not</em> synthesize small-caps faces
1331-
<em>nor</em> all-small-caps faces.
1332-
A value of ''font-synthesis/none'' disallows all synthetic faces.
1411+
This property is a shorthand for the 'font-synthesis-weight'
1412+
and 'font-synthesis-style' properties. Values are mapped as following:
1413+
1414+
<table class='data'>
1415+
<thead>
1416+
<tr>
1417+
<th>'font-synthesis' value
1418+
<th>'font-synthesis-weight' value
1419+
<th>'font-synthesis-style' value
1420+
<tbody>
1421+
<tr>
1422+
<th>none
1423+
<td>none
1424+
<td>none
1425+
<tr>
1426+
<th>weight
1427+
<td>auto
1428+
<td>none
1429+
<tr>
1430+
<th>style
1431+
<td>none
1432+
<td>auto
1433+
<tr>
1434+
<th>weight style
1435+
<td>auto
1436+
<td>auto
1437+
</table>
13331438

13341439
<div class="example">
13351440
The style rule below disables the use of synthetically obliqued Arabic:

0 commit comments

Comments
 (0)