views:

343

answers:

2

Is it possible to load a font at runtime in Silverlight for the Glyphs object. I've tried all sorts

-I've set the fonturi to a web location at runtime - no joy
-I've tried the same approach as textblock etc by setting the source to a stream but Glyphs do not support this.
-I've googled forever on it, but it seems that the only way is to have the fonts marked as resources in your SL project - which means rebuilding the xap everytime you need a new font - or knowing the list of fonts you need at design time.

So the question really is...Does anyone know how to truly dynamically load fonts for Glyphs in Silverlight?

+1  A: 

Did you manage to solve this problem? I am also looking for a way to do this. Thanks!

James
+1  A: 

My friend discovered that FontSource property is the key point. Also setting FontRenderingEmSize and Fill properties is essential step to success. FontSource allows loading both remote and embedded TTF fonts by providing a stream.

olegz