Files
doc-fr/reference/pdf/functions/pdf-stringwidth.xml
Damien Seguy 8d477eba69 spring commit
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@129857 c90b9560-bf6c-de11-be94-00142212c4b1
2003-06-02 15:49:40 +00:00

62 lines
2.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- splitted from ./en/functions/pdf.xml, last change in rev 1.42 -->
<refentry id="function.pdf-stringwidth">
<refnamediv>
<refname>pdf_stringwidth</refname>
<refpurpose>Retourne la largeur d'un texte avec la police courante</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>float</type><methodname>pdf_stringwidth</methodname>
<methodparam><type>int</type><parameter>pdf_object</parameter></methodparam>
<methodparam><type>string</type><parameter>text</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>font</parameter></methodparam>
<methodparam choice="opt"><type>float</type><parameter>size</parameter></methodparam>
</methodsynopsis>
<para>
<function>pdf_stringwidth</function> retourne la largeur du texte
<parameter>text</parameter> en utilisant la police courante, configur&eacute;e
avec <function>pdf_setfont</function>. Si les param&egrave;tres optionnels
de <parameter>font</parameter> et
<parameter>size</parameter> sont sp&eacute;cifi&eacute;s, la largeur sera calcul&eacute;e
en utilisant cette police et cette taille. Notez que
<parameter>font</parameter> est une ressource de police, retourn&eacute;e par
<function>pdf_findfont</function>.
</para>
<note>
<para>
Les param&egrave;tres <parameter>font</parameter> et <parameter>size</parameter>
doivent &ecirc;tre utilis&eacute; ensemble.
</para>
</note>
<para>
Voir aussi
<function>pdf_setfont</function> et
<function>pdf_findfont</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->