Laurent
Laurent

Reputation: 1806

Use a .ttf font in windows 6.5 C#

I try to use a .ttf file as my default application font but I haven't find how to load it... I've tried this :

customFont = new Font("MyProject.res.sony_sketch.ttf", 10F, FontStyle.Regular);

But when I use customFont, it displays the default one... Can anyone help me ? Thanks !

Upvotes: 0

Views: 1119

Answers (1)

Rowland Shaw
Rowland Shaw

Reputation: 38130

The first argument to that constructor if the font family name, you need to first install the font, and then reference it by family name.

Upvotes: 2

Related Questions