Skip to content

Commit 28a68fc

Browse files
committed
[css-fonts-3] fix #2307 with code tage
1 parent ef8cecf commit 28a68fc

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

css-fonts-3/Fonts.src.html

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ <h3 id="font-size-prop">Font size: the <a href="#propdef-font-size">font-size</a
915915
font. For scalable fonts, the font-size is a scale factor applied to the EM unit
916916
of the font. (Note that certain glyphs may bleed outside their EM box.) For
917917
non-scalable fonts, the font-size is converted into absolute units and matched
918-
against the declared font-size of the font, using the same absolute coordinate
918+
against the declared 'font-size' of the font, using the same absolute coordinate
919919
space for both of the matched values.
920920
Values have the following meanings:</p>
921921

@@ -925,15 +925,15 @@ <h3 id="font-size-prop">Font size: the <a href="#propdef-font-size">font-size</a
925925
in a table of font sizes computed and kept by the user agent. Possible values
926926
are:
927927

928-
<p> [ xx-small | x-small | small | medium | large | x-large | xx-large ]</p>
928+
<p><code> [ xx-small | x-small | small | medium | large | x-large | xx-large ]</code></p>
929929

930930
<dt><dfn id="relative-size-value"><var>&lt;relative-size&gt;</var></dfn>
931931

932932
<dd> A <var>&lt;relative-size&gt;</var> keyword is interpreted
933933
relative to the table of font sizes and the computed 'font-size' of the
934934
parent element. Possible values are:
935935

936-
<p> [ larger | smaller ]
936+
<p><code> [ larger | smaller ]</code>
937937

938938
<p> For example, if the parent element has a font size of
939939
'medium', a value of 'larger' will make the font size of the
@@ -962,13 +962,13 @@ <h3 id="font-size-prop">Font size: the <a href="#propdef-font-size">font-size</a
962962
<table class="data">
963963
<thead>
964964
<th>CSS absolute-size values</th>
965-
<th>xx-small</td>
966-
<th>x-small</td>
967-
<th>small</td>
968-
<th>medium</td>
969-
<th>large</td>
970-
<th>x-large</td>
971-
<th>xx-large</td>
965+
<th><code>xx-small</code></td>
966+
<th><code>x-small</code></td>
967+
<th><code>small</code></td>
968+
<th><code>medium</code></td>
969+
<th><code>large</code></td>
970+
<th><code>x-large</code></td>
971+
<th><code>xx-large</code></td>
972972
<th>&nbsp;</td>
973973
</thead>
974974
<tbody>
@@ -1088,7 +1088,7 @@ <h3 id="font-size-adjust-prop">Relative sizing: the <a href="#propdef-font-size-
10881088
of lowercase letters compared to their uppercase counterparts is a
10891089
determining factor of legibility. This is commonly referred to as the
10901090
<span class="index-def" title="aspect value"><dfn>aspect value</dfn></span>.
1091-
Precisely defined, it is equal to the x-height of a font divided by
1091+
Precisely defined, it is equal to the <code>x-height</code> of a font divided by
10921092
the font size.</p>
10931093

10941094
<p>In situations where font fallback occurs, fallback fonts may not
@@ -1665,41 +1665,41 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
16651665
</thead>
16661666
<tbody>
16671667
<tr>
1668-
<th>"woff"</th>
1668+
<th><code>"woff"</code></th>
16691669
<td><a href="https://www.w3.org/TR/WOFF/">WOFF 1.0 (Web Open Font Format)</a></td>
16701670
<td>.woff</td>
16711671
</tr>
16721672
<tr>
1673-
<th>"woff2"</th>
1673+
<th><code>"woff2"</code></th>
16741674
<td><a href="https://www.w3.org/TR/WOFF2/">WOFF 2.0 (Web Open Font Format)</a></td>
16751675
<td>.woff2</td>
16761676
</tr>
16771677
<tr>
1678-
<th>"truetype"</th>
1678+
<th><code>"truetype"</code></th>
16791679
<td><a href="https://www.microsoft.com/typography/otspec/default.htm">TrueType</a></td>
16801680
<td>.ttf</td>
16811681
</tr>
16821682
<tr>
1683-
<th>"opentype"</th>
1683+
<th><code>"opentype"</code></th>
16841684
<td><a href="https://www.microsoft.com/typography/otspec/default.htm">OpenType</a></td>
16851685
<td>.ttf, .otf</td>
16861686
</tr>
16871687
<tr>
1688-
<th>"embedded-opentype"</th>
1688+
<th><code>"embedded-opentype"</code></th>
16891689
<td><a href="https://www.w3.org/Submission/2008/SUBM-EOT-20080305/">Embedded OpenType</a></td>
16901690
<td>.eot</td>
16911691
</tr>
16921692
<tr>
1693-
<th>"svg"</th>
1693+
<th><code>"svg"</code></th>
16941694
<td><a href="https://www.w3.org/TR/SVG/fonts.html">SVG Font</a></td>
16951695
<td>.svg, .svgz</td>
16961696
</tr>
16971697
</tbody>
16981698
</table>
16991699

17001700
<p>Given the overlap in common usage between TrueType and OpenType, the
1701-
format hints "truetype" and "opentype" must be considered as synonymous;
1702-
a format hint of "opentype" does not imply that the font contains
1701+
format hints <code>"truetype"</code> and <code>"opentype"</code> must be considered as synonymous;
1702+
a format hint of <code>"opentype"</code> does not imply that the font contains
17031703
Postscript CFF style glyph data or that it contains OpenType layout
17041704
information (see <a href="#platform-props-to-css">Appendix A</a> for more background on this).
17051705
</p>
@@ -1710,7 +1710,7 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
17101710
argument to <code>local()</code> is a format-specific string that
17111711
uniquely identifies a single font face within a larger family. The
17121712
syntax for a <var>&lt;font-face-name&gt;</var> is a unique font face
1713-
name enclosed by "local(" and ")". The name can optionally be
1713+
name enclosed by <code>"local("</code> and <code>")"</code>. The name can optionally be
17141714
enclosed in quotes. If unquoted, the unquoted font family name
17151715
processing conventions apply; the name must be a sequence of
17161716
identifiers separated by <a href="https://www.w3.org/TR/css3-syntax/#whitespace">whitespace</a>
@@ -1749,15 +1749,15 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
17491749
font, not an entire font family. Defined in terms of
17501750
OpenType font data, the Postscript name is found in the font's
17511751
<a href="https://www.microsoft.com/typography/otspec/name.htm">name table</a>,
1752-
in the name record with nameID = 6 (see
1752+
in the name record with <code>nameID = 6</code> (see
17531753
[[!OPENTYPE]] for more details). The Postscript name is the commonly
17541754
used key for all fonts on OSX and for Postscript CFF fonts under
1755-
Windows. The full font name (nameID = 4) is used as a unique key for
1755+
Windows. The full font name (<code>nameID = 4</code>) is used as a unique key for
17561756
fonts with TrueType glyphs on Windows.
17571757
</p>
17581758

17591759
<p>For OpenType fonts with multiple localizations of the full font name, the US
1760-
English version is used (language ID = 0x409 for Windows and language ID = 0 for Macintosh)
1760+
English version is used (<code>language ID = 0x409</code> for Windows and <code>language ID = 0</code> for Macintosh)
17611761
or the first localization
17621762
when a US English full font name is not available (the OpenType
17631763
specification recommends that <a
@@ -1769,8 +1769,8 @@ <h3 id="src-desc">Font reference: the <a href="#descdef-src">src</a> descriptor<
17691769
font versions and OS localizations, since font style names (e.g. "Bold")
17701770
are frequently localized into many languages and the set of
17711771
localizations available varies widely across platform and font version.
1772-
User agents that match a concatenation of family name (nameID = 1) with
1773-
style name (nameID = 2) are considered non-conformant.
1772+
User agents that match a concatenation of family name (<code>nameID = 1</code>) with
1773+
style name (<code>nameID = 2</code>) are considered non-conformant.
17741774
</p>
17751775

17761776
<p>This also allows for referencing faces that belong to larger
@@ -3136,7 +3136,7 @@ <h3 id="font-variant-position-prop">Subscript and superscript forms: the <a href
31363136
}
31373137
</pre>
31383138

3139-
<p>Using font-variant-position to specify typographic subscripts in a way
3139+
<p>Using 'font-variant-position' to specify typographic subscripts in a way
31403140
that will still show subscripts in older user agents:</p>
31413141

31423142
<pre>@supports ( font-variant-position: sub ) {
@@ -3259,6 +3259,8 @@ <h3 id="font-variant-caps-prop">Capitalization: the <a href="#propdef-font-varia
32593259
<p>The 'font-feature-settings' property does not affect the decision of
32603260
whether or not to use a simulated small-caps font.<p>
32613261

3262+
<!-- but it does in Fonts 4 -->
3263+
32623264
<div class="example">
32633265
<pre>#example1 { font-variant-caps: small-caps; }
32643266
#example2 { font-variant-caps: small-caps; font-feature-settings: 'smcp' 0; }</pre>

0 commit comments

Comments
 (0)