Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 3297

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>SWFFont</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
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-2"></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 PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.swffont.getwidth.html"
ACCESSKEY="P"
>Înapoi</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"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.swffont"
></A
>SWFFont</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN61994"
></A
><P
>    (PHP 4 &#62;= 4.0.5)</P
>SWFFont&nbsp;--&nbsp;Loads a font definition</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN61997"
></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
>Avertisment</B
></TD
></TR
><TR
><TD
ALIGN="LEFT"
><P
>Aceastã funcþie
este <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>EXPERIMENTALÃ</I
></SPAN
>. Comportamentul acestei funcþii,
numele funcþiei, ºi orice altceva documentat despre aceastã funcþie
ar putea fi schimbate farã un anunþ prealabil, intr-o viitoare versiune PHP.
V-am avertizat, deci folosiþi aceastã extensie pe riscul dv.</P
></TD
></TR
></TABLE
></DIV
><P
>&#13;     If <VAR
CLASS="parameter"
>filename</VAR
> 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
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />$f </font><font color="#007700">= </font><font color="#0000BB">newSWFFont</font><font color="#007700">(</font><font color="#DD0000">"_sans"</font><font color="#007700">); <br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
>
     will give you the standard sans-serif font, probably the same as what you'd get
     with <VAR
CLASS="literal"
>&#60;font name="sans-serif"&#62;</VAR
> 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"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.swfgradient.addentry.html"
ACCESSKEY="N"
>Înainte</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"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>SWFGradient-&#62;addEntry</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>