PHP: SWFTextField->setFont() - Manual

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

search for in the

SWFTextField->setHeight() SWFTextField->setColor()

Last updated: Fri, 26 Jan 2007

view this page in

# SWFTextField->setFont()

(no version information, might be only in CVS)

SWFTextField->setFont() -- Sets the text field font

## Описание

class SWFTextField {
void setFont ( string font )
}

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

swftextfield->setfont() sets the text field font to the [browser-defined?] `font` font.

## Возвращаемые значения

Эта функция не возвращает значения после выполнения.

add a note User Contributed Notes
SWFTextField->setFont()
jerryscript at aol dot com
04-Jan-2004 06:57
`Ming 0.3 (current cvs) allows you to embed fonts using addChars().
$t-new SWFTextField();
$t->setFont(new SWFFont("font_file.fdb"));
$lowercase="abcdefghijklmnopqrstuvwxyz";
$uppercase="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$numbers="1234567890";
$charsToAdd="$lowercase$uppercase$numbers";
$t->addChars($charsToAdd);
I'm not sure if you can use regExp to addChars?
[note-I broke the char list up due to this board's wordwrap]`
Anze
04-Nov-2003 02:53
`From what I could gather, version 0.2a of Ming only allows to set browser font (that is, font is used only if user has it on his/her computer, otherwise some default is used). Embedding fonts does not work in this version, but judging from ChangeLog in CVS any CVS version from 2002-11-19 should be able to embed fdb font of your liking. Haven't tried it though.`
add a note
SWFTextField->setHeight() SWFTextField->setColor()

Last updated: Fri, 26 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