Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用System.Drawing.Graphics来绘制一些文本。
我想为此添加自定义字体。在这种情况下,我必须创建System.Drawing.Font。
如何使用带有自定义字体的*.ttf文件创建System.Drawing.Font ?
您可以使用 PrivateFontCollection类。
这是有关如何使用它的完整详细信息