tags:

views:

702

answers:

3

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. I know this is possible with a System.Drawing.FontFamily but I cannot find out how to do it with System.Windows.Media.FontFamily.

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"

+1  A: 

Very good question! I think you should contact these guys.

bitbonk
A: 

@bitbonk - that is a very good idea. I will and I'll be sure to post back the results.

viggity
A: 

Any Luck with this? i am having the same problem!

Thanks,

Piet

Nope, sorry. Hopefully this will be resolved in WPF 4.0
viggity