KennisbankExamencentrum
NL · NLNederlands (Nederland)
Taal kiezen13

CKTIS / CSS

font-variant-ligatures — ligaturen beheren

De eigenschap font-variant-ligatures bepaalt welke ligaturen en contextuele alternatieven een lettertype beschikbaar stelt. De eigenschap wordt overgeërfd.

Versie: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

font-variant-ligatures: 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

font-variant-ligatures bepaalt gewone, discretionaire en historische ligaturen, plus contextuele alternatieven. De beginwaarde normal schakelt in OpenType gewone ligaturen en contextuele alternatieven in, maar geen discretionaire of historische ligaturen.

none schakelt de functies uit die onder deze eigenschap vallen, maar niet de vereiste rlig-ligaturen. Het voorvoegsel no- schakelt de betreffende groep uit. Met de notatie || kunnen verschillende groepen in elke volgorde worden gecombineerd, zonder tegenstrijdige paren; normal en none staan op zichzelf.

De eigenschap wordt overgeërfd. Het effect hangt af van het lettertype; font-feature-settings kan deze instellingen overschrijven. Het voorbeeld behoudt de tekst en garandeert geen visuele verschillen.

Voorbeelden

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>font-variant-ligatures</title>
<style>
  p { font-family: serif; font-size: 32px; }
  .normal { font-variant-ligatures: normal; }
  .none { font-variant-ligatures: none; }
</style>
<p class="normal">office ffi fi fl</p>
<p class="none">office ffi fi fl</p>
</html>

Resultaat

office ffi fi fl
office ffi fi fl

De getoonde code en het opgegeven resultaat zijn in een geïsoleerde omgeving geverifieerd met de methode die in het verificatiebewijs voor exact deze versie is vastgelegd.

Bronnen