Download fonts for characters in Silverlight

Is it possible to load a font at runtime in Silverlight for a Glyphs object. I tried all kinds

- I installed the font meter in the web folder at runtime - without joy - I tried the same approach as textblock, etc., setting the source to the stream, but Glyphs do not support this.
- I am on it forever, but it seems that the only way is to have fonts marked as resources in your SL project, which means rebuilding xap every time you need a new font, or knowing the list of fonts that you need during development.

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

+7
c # fonts silverlight runtime glyph
source share
1 answer

My friend found that the FontSource property is the key. Also setting the FontRenderingEmSize and Fill properties is an important step to success. FontSource allows you to download both remote and embedded TTF fonts, providing a stream.

+2
source share

All Articles