I confirm the current code doesn't let you associate a browser font with a static text. Why not using SWFTextField as a workaround ? Could you point me to the gazb tests which aren't working anymore ? --strk; On Sun, Oct 04, 2009 at 06:28:10PM -0400, Larry Dunbar wrote: > I am using the current XAMPP for Windows (version 1.7.2) which has PHP > 5.3 and MING 0.4.2. I am having great difficulty using browser fonts. > For example, the following code snippet will produce an error when > trying to set the font for SWFText, but the SWFTextField works OK: > > <?php > > $font = new SWFBrowserFont("arial"); > > $txtfld = new SWFTextField(SWFTEXTFIELD_DRAWBOX); > $txtfld->setFont($font); > > $txt = new SWFText(); > $txt->setFont($font); > > ?> > > The error being returned is: > *Warning*: SWFText::setFont() [swftext.setfont > <http://ming.com/swftext.setfont>]: Unable to find property font in > *E:\ming\new_file.php* on line *9* > > *Fatal error*: SWFText::setFont() [<a > href='swftext.setfont'>swftext.setfont</a>]: Called object is not an > SWFFont in *E:\ming\new_file.php* on line *9 > > *I get the same error when trying to use SWFShape->drawGlyph(). Can > anyone provide a working example for SWFText and SWFShape using browser > fonts? Please no C code since I'm using PHP. The examples provided by > gazb (which have helped me tremendously in the past) do not work with > ming 0.4.2. > > Larry Dunbar > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Ming-users mailing list > Ming-users@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/ming-users -- Free GIS & Flash consultant/developer () ASCII Ribbon Campaign http://foo.keybit.net/~strk/services.html /\ Keep it simple! ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Ming-users mailing list Ming-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ming-users