Silverlight: Using Text from Unsupported Fonts

In Expression Blend you have the facility to convert text from a textblock into a XAML path. This then has no dependency on the original font, and the text will be rendered by Silverlight.

So, for example here's Expression Blend with some text written in Brush Script MT size 48.



With the TextBlock selected, go to the Object menu, select 'Path', and then select 'Convert to Path'. Your text will be converted into a Path with strokes defined by the Path mini-language.

You can see here how it is rendered by Silverlight in IE.

Thus, when using Expression you can create static text using the path mini language, and Expression does the grunt work for you. This also allows for foreign language support also, giving you static text without requiring a font download.



Comments (2)
  1. Rosyna says:

    Is it possible to have an if-then situation? If the user has the font, use the font. If the user doesn’t have the font, have a different code path that uses a prerendered code path?

  2. samirsshah says:

    This may sound far fetched but is there any way to embed a font?

Comments are closed.

Skip to main content