Перевод не завершен. Пожалуйста, помогите перевести эту статью с английского.
Сводка
Свойство CSS Font-variant-ligatures контролирует, какие лигатуры и контекстные формы используются в текстовом содержимом элемента, к которому применяется. Это повышает гармоничность форм получаемого в результате текста.
| Начальное значение | normal |
|---|---|
| Применяется к | все элементы. Это также применяется к ::first-letter и ::first-line. |
| Наследуется | да |
| Отображение | визуальный |
| Обработка значения | как указано |
| Animation type | discrete |
| Канонический порядок | порядок появления в формальной грамматике значений |
Syntax
font-variant-ligatures: normal; font-variant-ligatures: none; font-variant-ligatures: common-ligatures; /* <common-lig-values> */ font-variant-ligatures: no-common-ligatures; /* <common-lig-values> */ font-variant-ligatures: discretionary-ligatures; /* <discretionary-lig-values> */ font-variant-ligatures: no-discretionary-ligatures; /* <discretionary-lig-values> */ font-variant-ligatures: historical-ligatures; /* <historical-lig-values> */ font-variant-ligatures: no-historical-ligatures; /* <historical-lig-values> */ font-variant-ligatures: contextual; /* <contextual-alt-values> */ font-variant-ligatures: no-contextual; /* <contextual-alt-values> */ font-variant-ligatures: contextual; /* <no-historical-ligatures> <common-ligatures> */ /* Глобальные значения */ font-variant-ligatures: inherit; font-variant-ligatures: initial; font-variant-ligatures: unset;
Значения
normal- Это ключевое слово ведет к активации обычных лигатур и контекстных форм, необходимых для корректного рендеринга. Активируемые лигатуры и формы зависят от шрифта, языка и типа письма. Это значение по умолчанию.
none- Это ключевое слово устанавливает, что все лигатуры и контекстные формы отключены, даже распространенные.
- <common-lig-values>
- Эти значения контролируют наиболее распространенные лигатуры, такие как лигатуры для сочетаний
fi,ffi,thили подобных.Они относятся к значениям ligaи clig в OpenType. Допустимы два значения:common-ligaturesактивирует эти лигатуры. Обратите внимание, что ключевое словоnormalактивирует их.no-common-ligaturesотключает эти лигатуры.
- <discretionary-lig-values>
- These values control specific ligatures, specific to the font and defined by the type designer. They correspond to the OpenType values
dlig. Two values are possible:discretionary-ligaturesactivating these ligatures.no-discretionary-ligaturesdeactivating the ligatures. Note that the keywordnormalusually deactivates these ligatures.
- <historical-lig-values>
- These values control the ligatures used historically, in old books, like the German tz digraph being displayed ß. They correspond to the OpenType values
hlig. Two values are possible:historical-ligaturesactivating these ligatures.no-historical-ligaturesdeactivating the ligatures. Note that the keywordnormalusually deactivates these ligatures.
- <contextual-alt-values>
- These values control whether letters adapt to their context—that is, whether they adapt to the surrounding letters. These values correspond to the OpenType values
calt. Two values are possible:contextualspecifies that the contextual alternates are to be used. Note that the keywordnormalusually activates these ligatures too.no-contextualprevents their use.
Formal syntax
normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]где
<common-lig-values> = [ common-ligatures | no-common-ligatures ]
<discretionary-lig-values> = [ discretionary-ligatures | no-discretionary-ligatures ]
<historical-lig-values> = [ historical-ligatures | no-historical-ligatures ]
<contextual-alt-values> = [ contextual | no-contextual ]
Examples
p {
font-variant-ligatures: none;
}
Specifications
| Specification | Status | Comment |
|---|---|---|
| CSS Fonts Module Level 3 Определение 'font-variant-ligatures' в этой спецификации. |
Кандидат в рекомендации | Initial definition |
Browser Compatibility
| Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | 34 (34) [1] | 31 -webkit 34 |
10.0 | 19.0-webkit | 7.0-webkit |
| Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 4.4 -webkit | 34.0 (34)[1] | ? | ? | 7.0-webkit |
[1] Experimental implementation was available since Gecko 24. It was governed by the preference layout.css.font-features.enabled defaulting to true on Nightly and Aurora only. The none keyword has been added in Gecko 28.