From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/css/font-kerning/index.html | 116 +++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 files/fr/web/css/font-kerning/index.html (limited to 'files/fr/web/css/font-kerning/index.html') diff --git a/files/fr/web/css/font-kerning/index.html b/files/fr/web/css/font-kerning/index.html new file mode 100644 index 0000000000..8f3de1baa0 --- /dev/null +++ b/files/fr/web/css/font-kerning/index.html @@ -0,0 +1,116 @@ +--- +title: font-kerning +slug: Web/CSS/font-kerning +tags: + - CSS + - Propriété + - Reference +translation_of: Web/CSS/font-kerning +--- +
{{CSSRef}}
+ +

La propriété font-kerning contrôle le crénage de la police ; c'est-à-dire l'espace créé entre les lettres. L'information de crénage est stockée dans la police et si la police est bien crénée, cette caractéristique permet aux caractères, quels qu'ils soient, d'être espacés de manière semblable.Exemple pour font-kerning

+ +
font-kerning: auto;
+font-kerning: normal;
+font-kerning: none;
+
+/* Valeurs globales */
+font-kerning: inherit;
+font-kerning: initial;
+font-kerning: unset;
+
+ +

Syntaxe

+ +

Valeurs

+ +
+
auto
+
Ce mot-clé laisse au navigateur le choix d'utiliser ou non le crénage. Quand la taille de la police est petite, le crénage de la police peut avoir l'air étrange et les navigateurs le désactiveront. C'est la valeur par défaut.
+
normal
+
Ce mot-clé force l'application du crénage.
+
none
+
Ce mot-clé empêche le navigateur d'utiliser l'information de crénage stockée dans la police.
+
+ +

Syntaxe formelle

+ +
{{csssyntax}}
+ +

Exemples

+ +

CSS

+ +
#nokern, #kern {
+  font-size: 2rem;
+  font-family: serif;
+}
+#nokern {
+  font-kerning: none;
+}
+#kern {
+  font-kerning: normal;
+}
+ +

HTML

+ +
<div id="kern"></div>
+<div id="nokern"></div>
+<textarea id="input">AV T. ij</textarea>
+ +

JavaScript

+ +
var input  = document.getElementById('input'),
+    kern   = document.getElementById('kern'),
+    nokern = document.getElementById('nokern');
+input.addEventListener('keyup', function() {
+  kern.textContent = input.value; /* On met à jour le contenu */
+  nokern.textContent = input.value;
+});
+kern.textContent = input.value; /* On initialise le contenu */
+nokern.textContent = input.value;
+
+ +

{{EmbedLiveSample('Exemples')}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaire
{{SpecName('CSS3 Fonts', '#propdef-font-kerning', 'font-kerning')}}{{Spec2('CSS3 Fonts')}}Définition initiale
+ +

{{cssinfo}}

+ +

Compatibilité des navigateurs

+ + + +

{{Compat("css.properties.font-kerning")}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf