Embedding a font in a DX widget

. . or any other file type

Wednesday, June 6, 2007 by ZubaZ | Discussion: DesktopX

I love DX; think it's the greatest thing since sliced bread.  I think that the work of the coders that hang out in th forums is above average; every single one of them. 

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.
First Previous Page 2 of 2 Next Last
ZubaZ
Reply #21 Wednesday, June 4, 2008 4:59 PM
Hey, while we're at it, can we make text to be click through? Just a question while I am waiting for a reply to a PM for Romanda.
You are creating a separate text object an setting it's activation as "None".  that way your clicks will pass right through the text.

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!  
RomanDA
Reply #22 Wednesday, June 4, 2008 5:08 PM
dang Zu.. thats almost word for word what i just email him.. LOL mercy..
ZubaZ
Reply #23 Wednesday, June 4, 2008 5:21 PM
WOW.  Cool!
WeatherBound
Reply #24 Wednesday, June 4, 2008 7:13 PM
WeatherBound learns new trick. Ok maybe a year old trick  Lol
But it works the same.
Thanks Zubaz  
ZubaZ
Reply #25 Wednesday, June 4, 2008 9:24 PM
Very happy to help.

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!



web-wc01