Posted Saturday, October 23, 2004 11:50:56 AM by Danilo Celic
While working on an extension that I'm hoping will combine Dreamweaver and Flash I needed to have the user select the font that they want to use. So I used the API call dw.getSystemFontList() to grab a list of fonts to display to the user, and then dropped the list of fonts into a select list to give the user their choice of fonts.
To do this, add the ListControl class to your extension (see Fill a list with defined site names for how to do that), then add a select list to your extenion dialog, give it a name of "fontList" and then in your initilization function, add the following code:
var fonts = dw.getSystemFontList('all');
FONT_LIST = new ListControl('fontList');
Voila, instant font list. getSystemFontList() can also take 'TrueType' to list only the TrueType fonts on the user's system.
Posted Thursday, October 07, 2004 1:30:11 AM by Stephanie
I just noticed that Mike and Mark have a release candidate of the sIFR technique (pronounced "siffer"). Can't wait to put it up on a couple sites. I think I'll put it here on the blog for you guys to see over the weekend (if I can find some extra time. :)
The technique grew out of Shaun Inman's IFR technique which wasn't scalable. You had to export the swf in the size you wanted it rendered in. This technique is scalable and dynamic. Shaun writes, 'IFR is just an anagram of FIR, and pays homage to Fahrner Image Replacement. And it's "Flash Replacement" instead of "Text Replacement" for the same reason, to parallel FIR.'
Read their notes and download release candidate one. If you put it on a site, leave me a note and let me know how it works out for you.
Posted Friday, October 01, 2004 5:27:02 PM by Stephanie
I've got to hand it to Mike Davidson. He's putting together one of the most inventive things I've seen in quite some time. I'll be writing an article about it soon. But for now, I'll give you the basics.
You can read Mike's very long explanation at Introducing sIFR: The Healthy Alternative to Browser Text. And the most recent beta (check his site's blog for releases after this date) is version 2.0b2. You can download and play with the files -- sans instructions for now -- at sIFR 2.0b2: The Mo’ Betta Beta.