<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >imagepstext</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="imagepsslantfont" HREF="function.imagepsslantfont.html"><LINK REL="NEXT" TITLE="imagerectangle" HREF="function.imagerectangle.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.imagepsslantfont.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.imagerectangle.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.imagepstext" ></A >imagepstext</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN85717" ></A ><P > (PHP 3 >= 3.0.9, PHP 4, PHP 5)</P >imagepstext -- Draws a text over an image using PostScript Type1 fonts</DIV ><DIV CLASS="refsect1" ><A NAME="AEN85720" ></A ><H2 >Descrição</H2 >array <B CLASS="methodname" >imagepstext</B > ( resource image, string text, resource font, int size, int foreground, int background, int x, int y [, int space [, int tightness [, float angle [, int antialias_steps]]]] )<BR ></BR ><P > Draws a text on an image using PostScript Type1 fonts. </P ><P > Refer to PostScript documentation about fonts and their measuring system if you have trouble understanding how this works. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN85763" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" > image</CODE ></DT ><DD ><P >An image resource, returned by one of the image creation functions, such as <A HREF="function.imagecreatetruecolor.html" ><B CLASS="function" >imagecreatetruecolor()</B ></A >.</P ></DD ><DT ><CODE CLASS="parameter" >text</CODE ></DT ><DD ><P > The text to be written. </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" >foreground</CODE ></DT ><DD ><P > The color in which the text will be painted. </P ></DD ><DT ><CODE CLASS="parameter" >background</CODE ></DT ><DD ><P > The color to which the text will try to fade in with antialiasing. No pixels with the color <CODE CLASS="parameter" >background</CODE > are actually painted, so the background image does not need to be of solid color. </P ></DD ><DT ><CODE CLASS="parameter" >x</CODE ></DT ><DD ><P > x-coordinate for the lower-left corner of the first character </P ></DD ><DT ><CODE CLASS="parameter" >y</CODE ></DT ><DD ><P > y-coordinate for the lower-left corner of the first character </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 ><DT ><CODE CLASS="parameter" >antialias_steps</CODE ></DT ><DD ><P > Allows you to control the number of colours used for antialiasing text. Allowed values are 4 and 16. The higher value is recommended for text sizes lower than 20, where the effect in text quality is quite visible. With bigger sizes, use 4. It's less computationally intensive. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN85833" ></A ><H2 >Valores de retornado</H2 ><P > This function returns an array containing the following elements: <DIV CLASS="informaltable" ><P ></P ><A NAME="AEN85836" ></A ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><TBODY ><TR ><TD >0</TD ><TD >lower left x-coordinate</TD ></TR ><TR ><TD >1</TD ><TD >lower left y-coordinate</TD ></TR ><TR ><TD >2</TD ><TD >upper right x-coordinate</TD ></TR ><TR ><TD >3</TD ><TD >upper right y-coordinate</TD ></TR ></TBODY ></TABLE ><P ></P ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN85851" ></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="AEN85856" ></A ><H2 >Veja também</H2 ><P > <P ></P ><TABLE BORDER="0" ><TBODY ><TR ><TD ><A HREF="function.imagepsbbox.html" ><B CLASS="function" >imagepsbbox()</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.imagepsslantfont.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.imagerectangle.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >imagepsslantfont</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" >imagerectangle</TD ></TR ></TABLE ></DIV ></BODY ></HTML >