PHP: SWFFont->__construct() - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SWFFont->getAscent() SWFFont

Last updated: Sat, 27 Jan 2007

view this page in

# SWFFont->__construct()

(no version information, might be only in CVS)

SWFFont->__construct() -- Loads a font definition

## Описание

class SWFFont {
SWFFont __construct ( string filename )
}

Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

If `filename` 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.

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.

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:

`<?php $f = newSWFFont("_sans"); ?>`

will give you the standard sans-serif font, probably the same as what you'd get with `<font name="sans-serif">` in HTML.

add a note User Contributed Notes
SWFFont->__construct()
There are no user contributed notes for this page.
SWFFont->getAscent() SWFFont

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST