SWFTextField::setFont

(PHP 4 >= 4.2.0)

SWFTextField::setFontSets the text field font

Description

void SWFTextField::setFont ( SWFFont $font )
Warning

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

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

Return Values

No value is returned.

Коментарии

Автор:
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.
2003-11-04 04:53:36
http://php5.kiev.ua/manual/ru/swftextfield.setfont.html
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]
2004-01-04 20:57:45
http://php5.kiev.ua/manual/ru/swftextfield.setfont.html

    Поддержать сайт на родительском проекте КГБ