aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/svg/element/text
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-11-01 07:51:45 +0100
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-11-07 11:57:29 +0100
commit88dda3c00eefc18a29447e99ebd3177925602b52 (patch)
treea184ddfe3825b6f05cba6d7586ea05c9375558a0 /files/fr/web/svg/element/text
parent7040e4bc9c98e0c50ce903a5cbeeabeda2ed908a (diff)
downloadtranslated-content-88dda3c00eefc18a29447e99ebd3177925602b52.tar.gz
translated-content-88dda3c00eefc18a29447e99ebd3177925602b52.tar.bz2
translated-content-88dda3c00eefc18a29447e99ebd3177925602b52.zip
convert content to md
Diffstat (limited to 'files/fr/web/svg/element/text')
-rw-r--r--files/fr/web/svg/element/text/index.md136
1 files changed, 67 insertions, 69 deletions
diff --git a/files/fr/web/svg/element/text/index.md b/files/fr/web/svg/element/text/index.md
index bc1e735223..dafd76e9fe 100644
--- a/files/fr/web/svg/element/text/index.md
+++ b/files/fr/web/svg/element/text/index.md
@@ -8,104 +8,102 @@ tags:
- SVG contenu de texte
translation_of: Web/SVG/Element/text
---
-<div>{{SVGRef}}{{Draft("Cette version n'est pas à jour relativement à la version anglaise de référence, merci d'en tenir compte.")}}</div>
+{{SVGRef}}{{Draft("Cette version n'est pas à jour relativement à la version anglaise de référence, merci d'en tenir compte.")}}
-<p>L'élément SVG <code>text</code> définit un élément graphique contenant du texte. Notez  qu'il est possible d'y appliquer un dégradé, un motif, un tracé spécifique (clipping path), un masque ou un filtre.</p>
+L'élément SVG `text` définit un élément graphique contenant du texte. Notez  qu'il est possible d'y appliquer un dégradé, un motif, un tracé spécifique (clipping path), un masque ou un filtre.
-<p>Si du texte est écrit dans le SVG sans être intégré dans un balise &lt;text&gt;, il ne sera pas affiché. Le texte n'est pas <em>caché </em>par défaut, la propriété display ne le montre simplement pas.</p>
+Si du texte est écrit dans le SVG sans être intégré dans un balise \<text>, il ne sera pas affiché. Le texte n'est pas _caché_ par défaut, la propriété display ne le montre simplement pas.
-<h2 id="Contexte_d'utilisation">Contexte d'utilisation</h2>
+## Contexte d'utilisation
-<p>{{svginfo}}</p>
+{{svginfo}}
-<h2 id="Exemple">Exemple</h2>
+## Exemple
-<pre class="brush: xml">&lt;?xml version="1.0"?&gt;
-&lt;svg xmlns="http://www.w3.org/2000/svg"
- width="100px" height="30px" viewBox="0 0 1000 300"&gt;
+```xml
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg"
+ width="100px" height="30px" viewBox="0 0 1000 300">
- &lt;text x="250" y="150"
+ <text x="250" y="150"
font-family="Verdana"
- font-size="55"&gt;
+ font-size="55">
Bonjour tout le monde!
- &lt;/text&gt;
+ </text>
- &lt;!-- Dessine le contour de l'image --&gt;
- &lt;rect x="1" y="1" width="998" height="298"
- fill="none" stroke-width="2" /&gt;
-&lt;/svg&gt;
-</pre>
+ <!-- Dessine le contour de l'image -->
+ <rect x="1" y="1" width="998" height="298"
+ fill="none" stroke-width="2" />
+</svg>
+```
-<p>L'élément &lt;text&gt; est utilisé pour dessiner des caractères de texte. L'exemple de code suivant écrit un text svg à l'aide de coordonnées x/y.</p>
+L'élément \<text> est utilisé pour dessiner des caractères de texte. L'exemple de code suivant écrit un text svg à l'aide de coordonnées x/y.
-<pre class="brush: xml">&lt;svg xmlns="http://www.w3.org/2000/svg" width="100px" height="50px"&gt;
- &lt;text x="10" y="20"&gt;SVG Text Example&lt;/text&gt;
-&lt;/svg&gt;
-</pre>
+```xml
+<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="50px">
+ <text x="10" y="20">SVG Text Example</text>
+</svg>
+```
-<p>Le texte en SVG peut être pivoté. L'exemple de code suivant démontre la rotation de texte à l'aide de l'attribut transform.</p>
+Le texte en SVG peut être pivoté. L'exemple de code suivant démontre la rotation de texte à l'aide de l'attribut transform.
-<pre class="brush: xml">&lt;svg xmlns="http://www.w3.org/2000/svg" width="100px" height="50px"&gt;
- &lt;text x="10"  y="20"
- transform="rotate(30 20,40)"&gt;
+```xml
+<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="50px">
+ <text x="10"  y="20"
+ transform="rotate(30 20,40)">
SVG Text Rotation example
- &lt;/text&gt;
-&lt;/svg&gt;
-</pre>
+ </text>
+</svg>
+```
-<p>Le texte SVG peut également être stylisé avec du CSS contenant les propriétés SVG.</p>
+Le texte SVG peut également être stylisé avec du CSS contenant les propriétés SVG.
-<pre class="brush: xml">&lt;svg xmlns="http://www.w3.org/2000/svg" width="100px" height="50px"&gt;
- &lt;text x="10"  y="20"
+```xml
+<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="50px">
+ <text x="10"  y="20"
        style="font-family: Times New Roman;
              font-size  : 24;
               stroke     : #00ff00;
-              fill       : #0000ff;"&gt;
+              fill       : #0000ff;">
SVG text styling
- &lt;/text&gt;
-&lt;/svg&gt;
-</pre>
+ </text>
+</svg>
+```
-<h2 id="Attributs">Attributs</h2>
+## Attributs
-<h3 id="Attributs_globaux">Attributs globaux</h3>
+### Attributs globaux
-<ul>
- <li><a href="/fr/SVG/Attribute#ConditionalProccessing" title="en/SVG/Attribute#ConditionalProccessing">Conditional processing attributes</a> »</li>
- <li><a href="/fr/SVG/Attribute#Core" title="en/SVG/Attribute#Core">Core attributes</a> »</li>
- <li><a href="/fr/SVG/Attribute#GraphicalEvent" title="en/SVG/Attribute#GraphicalEvent">Graphical event attributes</a> »</li>
- <li><a href="/fr/SVG/Attribute#Presentation" title="en/SVG/Attribute#Presentation">Presentation attributes</a> »</li>
- <li>{{ SVGAttr("class") }}</li>
- <li>{{ SVGAttr("style") }}</li>
- <li>{{ SVGAttr("externalResourcesRequired") }}</li>
- <li>{{ SVGAttr("transform") }}</li>
-</ul>
+- [Conditional processing attributes](/fr/SVG/Attribute#ConditionalProccessing "en/SVG/Attribute#ConditionalProccessing") »
+- [Core attributes](/fr/SVG/Attribute#Core "en/SVG/Attribute#Core") »
+- [Graphical event attributes](/fr/SVG/Attribute#GraphicalEvent "en/SVG/Attribute#GraphicalEvent") »
+- [Presentation attributes](/fr/SVG/Attribute#Presentation "en/SVG/Attribute#Presentation") »
+- {{ SVGAttr("class") }}
+- {{ SVGAttr("style") }}
+- {{ SVGAttr("externalResourcesRequired") }}
+- {{ SVGAttr("transform") }}
-<h3 id="Attributs_spécifiques">Attributs spécifiques</h3>
+### Attributs spécifiques
-<ul>
- <li>{{ SVGAttr("x") }}</li>
- <li>{{ SVGAttr("y") }}</li>
- <li>{{ SVGAttr("dx") }}</li>
- <li>{{ SVGAttr("dy") }}</li>
- <li>{{ SVGAttr("text-anchor") }}</li>
- <li>{{ SVGAttr("rotate") }}</li>
- <li>{{ SVGAttr("textLength") }}</li>
- <li>{{ SVGAttr("lengthAdjust") }}</li>
-</ul>
+- {{ SVGAttr("x") }}
+- {{ SVGAttr("y") }}
+- {{ SVGAttr("dx") }}
+- {{ SVGAttr("dy") }}
+- {{ SVGAttr("text-anchor") }}
+- {{ SVGAttr("rotate") }}
+- {{ SVGAttr("textLength") }}
+- {{ SVGAttr("lengthAdjust") }}
-<h2 id="Interface_DOM">Interface DOM</h2>
+## Interface DOM
-<p>Cet élément implémente l'interface <code><a href="/fr/DOM/SVGTextElement" title="en/DOM/SVGTextElement">SVGTextElement</a></code>.</p>
+Cet élément implémente l'interface [`SVGTextElement`](/fr/DOM/SVGTextElement "en/DOM/SVGTextElement").
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
-<p>{{Compat("svg.elements.text")}}</p>
+{{Compat("svg.elements.text")}}
-<h2 id="Articles_liés">Articles liés</h2>
+## Articles liés
-<ul>
- <li>{{ SVGElement("tspan") }}</li>
- <li>{{ SVGElement("tref") }}</li>
- <li>{{ SVGElement("altGlyph") }}</li>
-</ul>
+- {{ SVGElement("tspan") }}
+- {{ SVGElement("tref") }}
+- {{ SVGElement("altGlyph") }}