WPF - Saving font to disk, then instantiating GlyphTypeface for font throws exception. Why?

后端 未结 5 1266
后悔当初
后悔当初 2021-01-12 19:47

I am mucking about with WPF glyphs and documents and have run into a null reference exception in the .Net 4 framework.

I extract and save true-type fonts to disk as

5条回答
  •  鱼传尺愫
    2021-01-12 20:03

    I ended up using the workaround of saving each font to its own folder (using the font name for the folder name). The exception went away, so I guess we can chalk this up to a bug in .Net.

提交回复
热议问题