SetSource (Glyphs)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Provides a source to render the requested glyphs in the Glyphs element.
object.SetSource(downloader, part)
-or-
object.SetSource(glyphTypeface, part)
Arguments
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 |
The GlyphTypeface object that contains the font file. If you use this signature, always set part to empty string (""). |
Managed Equivalent
There is no managed equivalent.
Remarks
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.
Version Information
Silverlight 3