Joh*_*ren 25
System.Drawing.dll中有一个System.Drawing.Text.PrivateFontCollection类,它可以基于每个应用程序管理字体.
您所做的就是在应用程序中维护此集合,并通过AddFontFile或AddMemoryFont添加字体,然后您就可以使用该字体,就像它安装在您的系统上一样.
这就像仅为应用程序安装字体一样.一旦进程终止,将卸载该字体.
小智 8
https://blog.andreloker.de/post/2008/07/03/Load-a-font-from-disk-stream-or-byte-array.aspx
试试这个...
该博客描述了如何使用FontCollection类.