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

后端 未结 5 1295
后悔当初
后悔当初 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 19:52

    I (and a co-worker) finally found what our particular problem was: do not save the font files to %TEMP%. For some reason, having the fonts saved to some other folder makes it work (for us), and saving it to anywhere inside %TEMP% makes it break.

提交回复
热议问题