Embedding a font in a DX widget
. . or any other file type
Wednesday, June 6, 2007 by ZubaZ | Discussion: DesktopX

I don't know why they hate me though.
I think they must. (I know RomanDA does but we're old friends so I'm ok with his hate.)How do I know they hate me? Because they make me install fonts packaged in the zip instead of doing the work for me when they build the widget. You see, you can embed any filetype inside the widget and then reference that file. You can embed fonts, or pdfs (as a help file), or a batch file, or whatever. I have two widgets I made for flash games. But here's the deal, they were both on-line games and I wanted them to be able to run locally with a cool-as-hell interface. So I grab a frame object, slap a web browser activeX object, download the swf files and embed it in the activeX object. Ta-da! I have a game I can take with me wherever I go. I can pass it around to my friends and family (with permission of course). No internet access needed!
Brad wrote a pretty good tutorial and put it in the DX on-line documentation. It was kinda hidden away there so here is a direct link.
Stop being haters and embed the fonts.
*Make sure the font license permits you to redistribute it. In the case of DesktopX, the font WON'T be installed into other machines, but it will just loaded at runtime when the object or widget is loaded. This usually permitted by most font licenses.
Reply #22 Wednesday, June 4, 2008 5:08 PM
Reply #24 Wednesday, June 4, 2008 7:13 PM
But it works the same.
Thanks Zubaz
Reply #25 Wednesday, June 4, 2008 9:24 PM
It's nice to knwo we can all still learn and teach.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #21 Wednesday, June 4, 2008 4:59 PM
Man . . I've played more in DX the last two days than I have in months.
I forgot what a great little engine it is. Thanks Jim!