Export (0) Print
Expand All

SetSource (Glyphs)

Silverlight

Provides a source to render the requested glyphs in the Glyphs element.

object.SetSource(downloader, part)
-or-
object.SetSource(glyphTypeface, part)

downloader

Downloader

The Downloader object that contains either a zip file or a font file.

part

string

The string name identifying the font name in the zip file. This will be an empty string if the Downloader contains only one font file, or if you use the glyphTypeface signature.

glyphTypeface

GlyphTypeface

The GlyphTypeface object that contains the font file. If you use this signature, always set part to empty string ("").

There is no managed equivalent.

Passing a null value to the Downloader argument sets the Glyphs source to nothing, and does not render anything.

If an invalid or incomplete Downloader is passed to the SetSource (Glyphs) method, an ArgumentException is raised along with the control's error event.

If a Downloader contains a file that is not a TrueType or OpenType font, an ArgumentException is raised along with the control's error event.

Silverlight 3

Community Additions

ADD
Show:
© 2015 Microsoft