C# add custom font by ttf

6.4k Views Asked by At

I use System.Drawing.Graphics to draw some text.

I want to add custom font for that. In this case I have to create System.Drawing.Font.

How can I create System.Drawing.Font by using *.ttf file with custom font?

1

There are 1 best solutions below

0
On BEST ANSWER

You can use PrivateFontCollection class.

Here is full details about how to use it