2005-06-22 13:21:24 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2005-06-22 13:57:20 +00:00
|
|
|
<!-- $Revision: 1.2 $ -->
|
2005-06-22 13:21:24 +00:00
|
|
|
<!-- splitted from ./en/functions/ps.xml, last change in rev 1.12 -->
|
|
|
|
<refentry id="function.ps-string-geometry">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>ps_string_geometry</refname>
|
|
|
|
<refpurpose>Gets geometry of a string</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>array</type><methodname>ps_string_geometry</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>psdoc</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>text</parameter></methodparam>
|
2005-06-22 13:57:20 +00:00
|
|
|
<methodparam choice="opt"><type>int</type><parameter>fontid</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>float</type><parameter>size</parameter></methodparam>
|
2005-06-22 13:21:24 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
This function is similar to <function>ps_stringwidth</function> but returns
|
|
|
|
an array of dimensions.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
An array of the dimensions of a string. The element 'width' contains the
|
|
|
|
width of the string as returned by <function>ps_stringwidth</function>. The
|
|
|
|
element 'descender' contains the maximum descender and 'ascender' the
|
|
|
|
maximum ascender of the string.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>ps_continue_text</function></member>
|
|
|
|
<member><function>ps_stringwidth</function></member>
|
|
|
|
</simplelist>
|
|
|
|
</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
|
|
|
|
-->
|
|
|
|
|