Sophie

Sophie

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

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

<HTML
><HEAD
><TITLE
>SWFFont</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="Ming functions for Flash"
HREF="ref.ming.html"><LINK
REL="PREVIOUS"
TITLE="swffont->getwidth"
HREF="function.swffont.getwidth.html"><LINK
REL="NEXT"
TITLE="SWFGradient->addEntry"
HREF="function.swfgradient.addentry.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.swffont.getwidth.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.swfgradient.addentry.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.swffont"
></A
>SWFFont</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN53864"
></A
><P
>    (PHP 4 &#62;= 4.0.5)</P
>SWFFont&nbsp;--&nbsp;Loads a font definition</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN53867"
></A
><H2
>Description</H2
>new <B
CLASS="methodname"
>swffont</B
> ( string filename)<BR
></BR
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
BORDER="1"
WIDTH="100%"
><TR
><TD
ALIGN="CENTER"
><B
>Warning</B
></TD
></TR
><TR
><TD
ALIGN="LEFT"
><P
>This function is
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>EXPERIMENTAL</I
></SPAN
>. The behaviour of this function, the
name of this function, and anything else documented about this
function may change without notice in a future release of PHP. 
Use this function at your own risk.</P
></TD
></TR
></TABLE
></DIV
><P
>&#13;     If <TT
CLASS="parameter"
><I
>filename</I
></TT
> is the name of an FDB file 
     (i.e., it ends in ".fdb"), load the font definition found in said 
     file. Otherwise, create a browser-defined font reference. 
    </P
><P
>&#13;     FDB ("font definition block") is a very simple wrapper for the SWF DefineFont2
     block which contains a full description of a font. One may create FDB files from 
     SWT Generator template files with the included makefdb utility- look in the 
     util directory off the main ming distribution directory. 
    </P
><P
>&#13;     Browser-defined fonts don't contain any information about the font other 
     than its name. It is assumed that the font definition will be provided by
     the movie player. The fonts _serif, _sans, and _typewriter should always 
     be available. For example: 
     <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>&#60;?php
$f = newSWFFont("_sans"); 
?&#62;</PRE
></TD
></TR
></TABLE
>
     will give you the standard sans-serif font, probably the same as what you'd get
     with <TT
CLASS="literal"
>&#60;font name="sans-serif"&#62;</TT
> in HTML.
    </P
><P
>&#13;     <B
CLASS="function"
>swffont()</B
> returns a reference to the font 
     definition, for use in the <B
CLASS="function"
>SWFText-&#62;setFont()</B
>
     and the <B
CLASS="function"
>SWFTextField-&#62;setFont()</B
> methods. 
    </P
><P
>&#13;     SWFFont has the following methods : <B
CLASS="function"
>swffont-&#62;getwidth()</B
>.
    </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.swffont.getwidth.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.swfgradient.addentry.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>swffont-&#62;getwidth</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.ming.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>SWFGradient-&#62;addEntry</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>