Skip to content

Commit 22343bc

Browse files
committed
[css-fonts-4] Cleanup Glyph selection and positioning
1 parent 34821de commit 22343bc

File tree

1 file changed

+63
-41
lines changed

1 file changed

+63
-41
lines changed

css-fonts-4/Overview.bs

Lines changed: 63 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,47 +3166,69 @@ Font Feature Properties</h2>
31663166
<h3 id="glyph-selection-positioning">
31673167
Glyph selection and positioning</h3>
31683168

3169-
This section is non-normative
3170-
3171-
Simple fonts used for displaying Latin text use a very basic
3172-
processing model. Fonts contain a <em>character map</em> which maps each
3173-
character to a glyph for that character. Glyphs for subsequent
3174-
characters are simply placed one after the other along a run of text. Modern font
3175-
formats such as OpenType and AAT (Apple Advanced Typography) use a
3176-
richer processing model. The glyph for a given character can be
3177-
chosen and positioned not just based on the codepoint of the character
3178-
itself, but also on adjacent characters as well as the language,
3179-
script, and features enabled for the text. Font features may be
3180-
required for specific scripts, or recommended as enabled by default or
3181-
they might be stylistic features meant to be used under author
3182-
control. The point at which font selection and positioning happens
3183-
in the overall order of text processing operations (such as
3184-
text transformation, text orientation and text alignment) is
3185-
described in [[css-text-3#order]].
3186-
3187-
For a good visual overview of these features, see
3188-
the [[OPENTYPE-FONT-GUIDE]]. For a detailed description of glyph processing for
3189-
OpenType fonts, see [[WINDOWS-GLYPH-PROC]].
3190-
3191-
Stylistic font features can be classified into two broad
3192-
categories: ones that affect the harmonization of glyph shapes with the
3193-
surrounding context, such as kerning and ligature features, and ones
3194-
such as the small-caps, subscript/superscript and alternate features
3195-
that affect shape selection.
3196-
3197-
The subproperties of 'font-variant!!property' listed below are used to control
3198-
these stylistic font features. They do not control features that are
3199-
required for displaying certain scripts, such as the OpenType features
3200-
used when displaying Arabic or Indic language text. They affect glyph
3201-
selection and positioning, but do not affect font selection as
3202-
described in the font matching section (except in cases required for
3203-
compatibility with CSS 2.1).
3204-
3205-
To assure consistent behavior across user agents, the equivalent
3206-
OpenType property settings are listed for individual properties and
3207-
are normative. When using other font formats these
3208-
should be used as a guideline to map CSS font feature property values
3209-
to specific font features.
3169+
This section is non-normative
3170+
3171+
Simple fonts used for displaying Latin text
3172+
use a very basic processing model.
3173+
Fonts contain a <a>character map</a>
3174+
which maps each character
3175+
to a glyph for that character.
3176+
Glyphs for subsequent characters
3177+
are simply placed one after the other along a run of text.
3178+
Modern font formats
3179+
such as OpenType
3180+
and AAT (Apple Advanced Typography)
3181+
use a richer processing model.
3182+
The glyph for a given character can be
3183+
chosen and positioned
3184+
not just based on the codepoint of the character itself,
3185+
but also on adjacent characters
3186+
as well as the language,
3187+
script,
3188+
and features enabled for the text.
3189+
Font features may be
3190+
required for specific scripts,
3191+
or recommended as enabled by default
3192+
or they might be stylistic features
3193+
meant to be used under author control.
3194+
The point at which font selection and positioning happens
3195+
in the overall order of text processing operations
3196+
(such as text transformation, text orientation and text alignment)
3197+
is described in [[css-text-3#order]].
3198+
3199+
For a good visual overview of these features,
3200+
see the [[OPENTYPE-FONT-GUIDE]].
3201+
For a detailed description of glyph processing
3202+
for OpenType fonts,
3203+
see [[WINDOWS-GLYPH-PROC]].
3204+
3205+
Stylistic font features can be classified
3206+
into two broad categories:
3207+
ones that affect the harmonization of glyph shapes
3208+
with the surrounding context,
3209+
such as kerning and ligature features,
3210+
and ones such as the small-caps,
3211+
subscript/superscript and alternate features
3212+
that affect shape selection.
3213+
3214+
The subproperties of 'font-variant!!property' listed below
3215+
are used to control these stylistic font features.
3216+
They do not control features
3217+
that are required for displaying certain scripts,
3218+
such as the OpenType features used when displaying Arabic or Indic language text.
3219+
They affect glyph selection and positioning,
3220+
but do not affect font selection
3221+
as described in the font matching section
3222+
(except in cases required for compatibility with CSS 2.1).
3223+
3224+
To assure consistent behavior across user agents,
3225+
the equivalent OpenType property settings
3226+
are listed for individual properties
3227+
and are normative.
3228+
When using other font formats
3229+
these should be used as a guideline
3230+
to map CSS font feature property values
3231+
to specific font features.
32103232

32113233

32123234
<h3 id="language-specific-support">

0 commit comments

Comments
 (0)