


The following code example shows a font reference that is composed of a base URI value and a relative URI value. For example, the base URI value can be a "pack://application" URI, which lets you reference fonts that are packaged as application resources. You can use a base URI value when you reference a font that is packaged as part of the application. The API docs how describe how an application resource can be used, though it is not clear to me whether that is an Embedded resource in the assembly or a file on disk.

Note: I will only have the stream, so I can't pack it as a resource in the application and because of disk permissions issues, will not be able to write the font file to disk for reference as "content" I know this is possible with a but I cannot find out how to do it with. I have a MemoryStream with the contents of a Font File (.ttf) and I would like to be able to create a FontFamily WPF object from that stream WITHOUT writing the contents of the stream to disk.
