2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2005-12-08 13:45:05 +00:00
|
|
|
<!-- $Revision: 1.8 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/pdf.xml, last change in rev 1.42 -->
|
|
|
|
<refentry id="function.pdf-stringwidth">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>pdf_stringwidth</refname>
|
2005-12-08 13:45:05 +00:00
|
|
|
<refpurpose>Return width of text</refpurpose>
|
2002-04-15 00:12:54 +00:00
|
|
|
</refnamediv>
|
2005-12-08 13:45:05 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>float</type><methodname>pdf_stringwidth</methodname>
|
2005-12-08 13:45:05 +00:00
|
|
|
<methodparam><type>resource</type><parameter>p</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodparam><type>string</type><parameter>text</parameter></methodparam>
|
2004-08-13 12:05:17 +00:00
|
|
|
<methodparam><type>int</type><parameter>font</parameter></methodparam>
|
2005-12-08 13:45:05 +00:00
|
|
|
<methodparam><type>float</type><parameter>fontsize</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2005-12-08 13:45:05 +00:00
|
|
|
Returns the width of <parameter>text</parameter> in an arbitrary font, using the parameters
|
|
|
|
<parameter>font</parameter> and <parameter>fontsize</parameter>.
|
|
|
|
<parameter>font</parameter> is a font handle returned
|
|
|
|
by <function>pdf_load_font</function>.
|
2002-04-15 00:12:54 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2005-12-08 13:45:05 +00:00
|
|
|
See also <function>pdf_load_font</function>.
|
2002-04-15 00:12:54 +00:00
|
|
|
</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
|
|
|
|
-->
|