aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/font-kerning
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-09-17 20:59:20 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-12 07:57:33 +0200
commit258ba7b4be62d8640477a3bd3146d08b00cb70ec (patch)
treea8476eee4c369ff47bdfe08353774414f2281ba3 /files/fr/web/css/font-kerning
parent149319bb8c7b1394a443f0877c3460cd362aa815 (diff)
downloadtranslated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.gz
translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.bz2
translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.zip
convert content to md
Diffstat (limited to 'files/fr/web/css/font-kerning')
-rw-r--r--files/fr/web/css/font-kerning/index.md123
1 files changed, 56 insertions, 67 deletions
diff --git a/files/fr/web/css/font-kerning/index.md b/files/fr/web/css/font-kerning/index.md
index b6870b4104..bc3fe72aa0 100644
--- a/files/fr/web/css/font-kerning/index.md
+++ b/files/fr/web/css/font-kerning/index.md
@@ -7,11 +7,12 @@ tags:
- Reference
translation_of: Web/CSS/font-kerning
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p>La propriété <strong><code>font-kerning</code></strong> 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 <em>bien crénée</em>, cette caractéristique permet aux caractères, quels qu'ils soient, d'être espacés de manière semblable.<img alt="Exemple pour font-kerning" src="font-kerning.png"></p>
+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.png)
-<pre class="brush:css no-line-numbers">font-kerning: auto;
+```css
+font-kerning: auto;
font-kerning: normal;
font-kerning: none;
@@ -19,30 +20,29 @@ font-kerning: none;
font-kerning: inherit;
font-kerning: initial;
font-kerning: unset;
-</pre>
+```
-<h2 id="Syntaxe">Syntaxe</h2>
+## Syntaxe
-<h3 id="Valeurs">Valeurs</h3>
+### Valeurs
-<dl>
- <dt><code>auto</code></dt>
- <dd>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.</dd>
- <dt><code>normal</code></dt>
- <dd>Ce mot-clé force l'application du crénage.</dd>
- <dt><code>none</code></dt>
- <dd>Ce mot-clé empêche le navigateur d'utiliser l'information de crénage stockée dans la police.</dd>
-</dl>
+- `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.
-<h3 id="Syntaxe_formelle">Syntaxe formelle</h3>
+### Syntaxe formelle
{{csssyntax}}
-<h2 id="Exemples">Exemples</h2>
+## Exemples
-<h3 id="CSS">CSS</h3>
+### CSS
-<pre class="brush: css">#nokern, #kern {
+```css
+#nokern, #kern {
font-size: 2rem;
font-family: serif;
}
@@ -51,17 +51,21 @@ font-kerning: unset;
}
#kern {
font-kerning: normal;
-}</pre>
+}
+```
-<h3 id="HTML">HTML</h3>
+### HTML
-<pre class="brush: html">&lt;div id="kern"&gt;&lt;/div&gt;
-&lt;div id="nokern"&gt;&lt;/div&gt;
-&lt;textarea id="input"&gt;AV T. ij&lt;/textarea&gt;</pre>
+```html
+<div id="kern"></div>
+<div id="nokern"></div>
+<textarea id="input">AV T. ij</textarea>
+```
-<h3 id="JavaScript">JavaScript</h3>
+### JavaScript
-<pre class="brush: js">var input = document.getElementById('input'),
+```js
+var input = document.getElementById('input'),
kern = document.getElementById('kern'),
nokern = document.getElementById('nokern');
input.addEventListener('keyup', function() {
@@ -70,45 +74,30 @@ input.addEventListener('keyup', function() {
});
kern.textContent = input.value; /* On initialise le contenu */
nokern.textContent = input.value;
-</pre>
-
-<p>{{EmbedLiveSample('Exemples')}}</p>
-
-<h2 id="Spécifications">Spécifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">État</th>
- <th scope="col">Commentaire</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS3 Fonts', '#propdef-font-kerning', 'font-kerning')}}</td>
- <td>{{Spec2('CSS3 Fonts')}}</td>
- <td>Définition initiale</td>
- </tr>
- </tbody>
-</table>
-
-<p>{{cssinfo}}</p>
-
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
-
-<p>{{Compat("css.properties.font-kerning")}}</p>
-
-<h2 id="Voir_aussi">Voir aussi</h2>
-
-<ul>
- <li>{{cssxref("font-variant")}}</li>
- <li>{{cssxref("font-variant-position")}}</li>
- <li>{{cssxref("font-variant-east-asian")}}</li>
- <li>{{cssxref("font-variant-caps")}}</li>
- <li>{{cssxref("font-variant-ligatures")}}</li>
- <li>{{cssxref("font-variant-numeric")}}</li>
- <li>{{cssxref("font-variant-alternates")}}</li>
- <li>{{cssxref("font-synthesis")}}</li>
- <li>{{cssxref("letter-spacing")}}.</li>
-</ul>
+```
+
+{{EmbedLiveSample('Exemples')}}
+
+## Spécifications
+
+| Spécification | État | Commentaire |
+| ---------------------------------------------------------------------------------------- | -------------------------------- | ------------------- |
+| {{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
+
+- {{cssxref("font-variant")}}
+- {{cssxref("font-variant-position")}}
+- {{cssxref("font-variant-east-asian")}}
+- {{cssxref("font-variant-caps")}}
+- {{cssxref("font-variant-ligatures")}}
+- {{cssxref("font-variant-numeric")}}
+- {{cssxref("font-variant-alternates")}}
+- {{cssxref("font-synthesis")}}
+- {{cssxref("letter-spacing")}}.