Skip to content

Commit

Permalink
image sync with EN (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored Jan 28, 2025
1 parent 0160ff6 commit f3cc899
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions reference/image/functions/imagettftext.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 20a9aaa1f195160622f9c53eabcfd2da7b32b346 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="function.imagettftext" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -98,12 +98,13 @@
</para>
<para>
Peut inclure des références à des caractères numériques,
décimales (sous la forme : &amp;#8364; ) pour accéder aux caractères
d'une police au delà du premier 127. Les chaînes de caractères
encodées en UTF-8 peuvent être passées directement.
décimales (sous la forme : <literal>&amp;#8364;</literal>) pour accéder aux caractères
d'une police au delà du premier 127.
Le format hexadécimal (comme <literal>&amp;#xA9;</literal>) est pris en charge.
Les chaînes de caractères encodées en UTF-8 peuvent être passées directement.
</para>
<para>
Les entités nommées, comme &amp;copy;, ne sont pas supportées. Utilisez la
Les entités nommées, comme <literal>&amp;copy;</literal>, ne sont pas supportées. Utilisez la
fonction <function>html_entity_decode</function> pour encoder ces entités
nommées en chaîne UTF-8.
</para>
Expand Down Expand Up @@ -164,6 +165,7 @@
<programlisting role="php">
<![CDATA[
<?php
// Définition du content-type
header('Content-Type: image/png');
Expand All @@ -178,6 +180,7 @@ imagefilledrectangle($im, 0, 0, 399, 29, $white);
// Le texte à dessiner
$text = 'Test...';
// Remplacez le chemin par votre propre chemin de police
$font = 'arial.ttf';
Expand All @@ -190,6 +193,7 @@ imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
// Utiliser imagepng() donnera un texte plus claire,
// comparé à l'utilisation de la fonction imagejpeg()
imagepng($im);
?>
]]>
</programlisting>
Expand Down

0 comments on commit f3cc899

Please sign in to comment.