PHP Australia Conference 2015


(PHP 5 <= 5.3.0, PECL ming SVN)

SWFTextField::setFontSets the text field font


void SWFTextField::setFont ( SWFFont $font )

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.

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


Es wird kein Wert zurückgegeben.

add a note add a note

User Contributed Notes 2 notes

jerryscript at aol dot com
10 years ago
Ming 0.3 (current cvs) allows you to embed fonts using addChars().

$t-new SWFTextField();
$t->setFont(new SWFFont("font_file.fdb"));

I'm not sure if you can use regExp to addChars?
[note-I broke the char list up due to this board's wordwrap]
10 years ago
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.
To Top