Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#通过ttf添加自定义字体_C#_Fonts_System.drawing_Truetype_System.drawing.graphics - Fatal编程技术网

C#通过ttf添加自定义字体

C#通过ttf添加自定义字体,c#,fonts,system.drawing,truetype,system.drawing.graphics,C#,Fonts,System.drawing,Truetype,System.drawing.graphics,我使用System.Drawing.Graphics来绘制一些文本 我想为它添加自定义字体。 在这种情况下,我必须创建System.Drawing.Font 如何使用带有自定义字体的*.ttf文件创建System.Drawing.Font 是关于如何使用它的全部细节

我使用System.Drawing.Graphics来绘制一些文本

我想为它添加自定义字体。 在这种情况下,我必须创建System.Drawing.Font

如何使用带有自定义字体的*.ttf文件创建System.Drawing.Font

是关于如何使用它的全部细节