@@ -2013,8 +2013,8 @@ non-conformant behavior. Authors are advised to use fallback fonts in
20132013their font lists that closely match the metrics of the
20142014downloadable fonts to avoid large page reflows where possible.
20152015
2016- <a id="same-origin-restriction">
2017- <a id="allowing-cross-origin-font-loading">
2016+ <a id="same-origin-restriction"> </a>
2017+ <a id="allowing-cross-origin-font-loading"> </a>
20182018<h4 id="font-fetching-requirements">Font fetching requirements</h4>
20192019
20202020For font loads, user agents must use the
@@ -2679,8 +2679,8 @@ required for specific scripts, or recommended as enabled by default or
26792679they might be stylistic features meant to be used under author
26802680control.
26812681
2682- For a good visual overview of these features, see the
2683- [[OPENTYPE-FONT-GUIDE]] . For a detailed description of glyph processing for
2682+ For a good visual overview of these features, see
2683+ the [[OPENTYPE-FONT-GUIDE]] . For a detailed description of glyph processing for
26842684OpenType fonts, see [[WINDOWS-GLYPH-PROC]] .
26852685
26862686Stylistic font features can be classified into two broad
@@ -2725,6 +2725,53 @@ Numerical formatting: the 'font-variant-numeric' property</h3>
27252725<h3 id="font-variant-alternates-prop">
27262726Alternates and swashes: the 'font-variant-alternates' property</h3>
27272727
2728+ <pre class="propdef">
2729+ Name : font-variant-alternates
2730+ Value : normal | [ <<stylistic>> || <<historical-forms>> || <<styleset>> || <<character-variant>> || <<swash>> || <<ornaments>> || <<annotation>> ]
2731+ Initial : normal
2732+ Applies to : all elements
2733+ Inherited : yes
2734+ Percentages : n/a
2735+ Computed value : as specified
2736+ Media : visual
2737+ Animatable : no
2738+ </pre>
2739+
2740+ For any given character, fonts can provide a variety of alternate
2741+ glyphs in addition to the default glyph for that character. This
2742+ property provides control over the selection of these alternate
2743+ glyphs.
2744+
2745+ For many of the property values listed below, several different
2746+ alternate glyphs are available. How many alternates are available
2747+ and what they represent is font-specific, so these are each marked
2748+ <dfn>font specific</dfn> in the value definitions below. Because the nature
2749+ of these alternates is font-specific, the
2750+ ''@font-feature-values'' rule is used to define values for a
2751+ specific font family or set of families that associate a font-specific
2752+ numeric <feature-index> with a custom
2753+ <feature-value-name> , which is then used in this
2754+ property to select specific alternates:
2755+
2756+ <pre> @font-feature-values Noble Script { @swash { swishy: 1; flowing: 2; } }
2757+
2758+ p {
2759+ font-family: Noble Script;
2760+ font-variant-alternates: swash(flowing); /* use swash alternate #2 */
2761+ }</pre>
2762+
2763+ When a particular <feature-value-name> has not
2764+ been defined for a given family or for a particular feature type, the
2765+ computed value must be the same as if it had been defined. However,
2766+ property values that contain these undefined <feature-value-name>
2767+ identifiers must be ignored when choosing glyphs.
2768+
2769+ <pre> /* these two style rules are effectively the same */
2770+
2771+ p { font-variant-alternates: swash(unknown-value); } /* not a defined value, ignored */
2772+ p { font-variant-alternates: normal; }
2773+ </pre>
2774+
27282775Issue: Moved to Level 4; port the text for this from Fonts 3 .src to Fonts 4 .bs
27292776
27302777<h3 id="font-feature-values">
@@ -3275,6 +3322,7 @@ Font family: the 'font-family' descriptor</h3>
32753322Name : font-family
32763323Value : <<'font-family'>>
32773324For : @font-palette-values
3325+ Initial : N/A
32783326</pre>
32793327
32803328This descriptor defines the font family name that this palette applies to.
@@ -3293,6 +3341,7 @@ Specifying the base palette: the 'base-palette' descriptor</h3>
32933341Name : base-palette
32943342Value : <<integer>>
32953343For : @font-palette-values
3344+ Initial : N/A
32963345</pre>
32973346
32983347This descriptor specifies a palette in the font
@@ -3331,6 +3380,7 @@ Overriding a color in the palette: The <<integer>> descriptor</h3>
33313380Name : <<integer>>
33323381Value : <<color>>
33333382For : @font-palette-values
3383+ Initial : N/A
33343384</pre>
33353385
33363386This descriptor overrides or adds a color
0 commit comments