Just so I understand, you have your app Foo.dll and you also are using 
MyCustomControl.dll right?  And the font is compiled as a Resource (not 
Embedded Resource) in MyCustomControl.dll?

If so, FontFamily in an element in Foo.dll should be:

MyCustomControl;component/fontfile.ttf#Font Name

<ShortAssemblyName>;component/<fontresourcefilename>#<fontfamilyname>

-th

tim heuer | (602) 405-4567 | im: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
blog: http://timheuer.com/blog/ | twitter: 
@timheuer<http://twitter.com/timheuer>

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perry 
Stathopoulos
Sent: Thursday, August 28, 2008 4:02 PM
To: [email protected]
Subject: [OzSilverlight] Loading a custom font from a class library

I'm having trouble loading a custom font that is embedded in a class library 
that is required by a custom control in that library. I set the FontFamily as 
fontfile.ttf#FontName, and my font is set as embedded.

If I add the font file as embedded in my main silverlight application then it 
works, however this is not what I would like to do as I want a self containing 
custom control including its resources. Anyone have any ideas/suggestions?

Perry
------------------------------------------------------------------- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net



------------------------------------------------------------------- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.

Powered by mailenable.com - List managed by www.readify.net

Reply via email to