Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 2303

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>printer_create_font</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Printer functions"
HREF="ref.printer.html"><LINK
REL="PREVIOUS"
TITLE="printer_create_dc"
HREF="function.printer-create-dc.html"><LINK
REL="NEXT"
TITLE="printer_create_pen"
HREF="function.printer-create-pen.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></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"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.printer-create-dc.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.printer-create-pen.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.printer-create-font"
></A
>printer_create_font</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN79083"
></A
><P
>    (no version information, might be only in CVS)</P
>printer_create_font&nbsp;--&nbsp;Create a new font</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN79086"
></A
><H2
>Description</H2
>mixed <B
CLASS="methodname"
>printer_create_font</B
> ( string face, int height, int width, int font_weight, bool italic, bool underline, bool strikeout, int orientaton)<BR
></BR
><P
>&#13;     The function creates a new font and returns a handle to it. A font is 
     used to draw text. For an example see 
     <A
HREF="function.printer-select-font.html"
><B
CLASS="function"
>printer_select_font()</B
></A
>. <TT
CLASS="parameter"
><I
>face</I
></TT
> 
     must be a string specifying the font face. <TT
CLASS="parameter"
><I
>height</I
></TT
> 
     specifies the font height, and <TT
CLASS="parameter"
><I
>width</I
></TT
> the font 
     width. The <TT
CLASS="parameter"
><I
>font_weight</I
></TT
> specifies the font weight 
     (400 is normal), and can be one of the following predefined constants.
     <P
></P
><UL
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_THIN</I
></TT
>:
        sets the font weight to thin (100).
       </P
></LI
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_ULTRALIGHT</I
></TT
>:
        sets the font weight to ultra light (200).
       </P
></LI
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_LIGHT</I
></TT
>:
        sets the font weight to light (300).
       </P
></LI
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_NORMAL</I
></TT
>:
        sets the font weight to normal (400).
       </P
></LI
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_MEDIUM</I
></TT
>:
        sets the font weight to medium (500).
       </P
></LI
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_BOLD</I
></TT
>:
        sets the font weight to bold (700).
       </P
></LI
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_ULTRABOLD</I
></TT
>:
        sets the font weight to ultra bold (800).
       </P
></LI
><LI
><P
>&#13;        <TT
CLASS="parameter"
><I
>PRINTER_FW_HEAVY</I
></TT
>:
        sets the font weight to heavy (900).            
       </P
></LI
></UL
>
    </P
><P
>&#13;     <TT
CLASS="parameter"
><I
>italic</I
></TT
> can be <TT
CLASS="constant"
><B
>TRUE</B
></TT
> or <TT
CLASS="constant"
><B
>FALSE</B
></TT
>, 
     and sets whether the font should be italic.
    </P
><P
>&#13;     <TT
CLASS="parameter"
><I
>underline</I
></TT
> can be <TT
CLASS="constant"
><B
>TRUE</B
></TT
> or <TT
CLASS="constant"
><B
>FALSE</B
></TT
>, 
     and sets whether the font should be underlined.
    </P
><P
>&#13;     <TT
CLASS="parameter"
><I
>strikeout</I
></TT
> can be <TT
CLASS="constant"
><B
>TRUE</B
></TT
> or <TT
CLASS="constant"
><B
>FALSE</B
></TT
>, 
     and sets whether the font should be striked out.
    </P
><P
>&#13;     <TT
CLASS="parameter"
><I
>orientation</I
></TT
> specifies a rotation.
     For an example see <A
HREF="function.printer-select-font.html"
><B
CLASS="function"
>printer_select_font()</B
></A
>.
    </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.printer-create-dc.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.printer-create-pen.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>printer_create_dc</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.printer.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>printer_create_pen</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>