<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >imagepsbbox</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="Imagens, Funções de" HREF="ref.image.html"><LINK REL="PREVIOUS" TITLE="imagepolygon" HREF="function.imagepolygon.html"><LINK REL="NEXT" TITLE="imagepsencodefont" HREF="function.imagepsencodefont.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.imagepolygon.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.imagepsencodefont.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.imagepsbbox" ></A >imagepsbbox</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN85452" ></A ><P > (PHP 3 >= 3.0.9, PHP 4, PHP 5)</P >imagepsbbox -- Give the bounding box of a text rectangle using PostScript Type1 fonts</DIV ><DIV CLASS="refsect1" ><A NAME="AEN85455" ></A ><H2 >Descrição</H2 >array <B CLASS="methodname" >imagepsbbox</B > ( string text, int font, int size [, int space, int tightness, float angle] )<BR ></BR ><P > Gives the bounding box of a text rectangle using PostScript Type1 fonts. </P ><P > The bounding box is calculated using information available from character metrics, and unfortunately tends to differ slightly from the results achieved by actually rasterizing the text. If the angle is 0 degrees, you can expect the text to need 1 pixel more to every direction. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN85480" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >text</CODE ></DT ><DD ><P > </P ></DD ><DT ><CODE CLASS="parameter" > font</CODE ></DT ><DD ><P >Pode ser 1, 2, 3, 4, 5 para as fontes embutidas (aonde números maiores correspondem a fontes mais largas) ou qualquer um dos seus própios identificadores de fonte registrado com <A HREF="function.imageloadfont.html" ><B CLASS="function" >imageloadfont()</B ></A >. </P ></DD ><DT ><CODE CLASS="parameter" >size</CODE ></DT ><DD ><P > <CODE CLASS="parameter" >size</CODE > is expressed in pixels. </P ></DD ><DT ><CODE CLASS="parameter" >space</CODE ></DT ><DD ><P > Allows you to change the default value of a space in a font. This amount is added to the normal value and can also be negative. Expressed in character space units, where 1 unit is 1/1000th of an em-square. </P ></DD ><DT ><CODE CLASS="parameter" >tightness</CODE ></DT ><DD ><P > <CODE CLASS="parameter" >tightness</CODE > allows you to control the amount of white space between characters. This amount is added to the normal character width and can also be negative. Expressed in character space units, where 1 unit is 1/1000th of an em-square. </P ></DD ><DT ><CODE CLASS="parameter" >angle</CODE ></DT ><DD ><P > <CODE CLASS="parameter" >angle</CODE > is in degrees. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN85518" ></A ><H2 >Valores de retornado</H2 ><P > Returns an array containing the following elements: <DIV CLASS="informaltable" ><P ></P ><A NAME="AEN85521" ></A ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><TBODY ><TR ><TD >0</TD ><TD >left x-coordinate</TD ></TR ><TR ><TD >1</TD ><TD >upper y-coordinate</TD ></TR ><TR ><TD >2</TD ><TD >right x-coordinate</TD ></TR ><TR ><TD >3</TD ><TD >lower y-coordinate</TD ></TR ></TBODY ></TABLE ><P ></P ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN85536" ></A ><H2 >Notas</H2 ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Nota: </B >Esta função somente está disponível se o PHP estiver compilado com <CODE CLASS="option" >--with-t1lib[=DIR]</CODE >. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN85541" ></A ><H2 >Veja também</H2 ><P > <P ></P ><TABLE BORDER="0" ><TBODY ><TR ><TD ><A HREF="function.imagepstext.html" ><B CLASS="function" >imagepstext()</B ></A ></TD ></TR ></TBODY ></TABLE ><P ></P > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.imagepolygon.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.imagepsencodefont.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >imagepolygon</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.image.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >imagepsencodefont</TD ></TR ></TABLE ></DIV ></BODY ></HTML >