I try to use OTF font installed on my system but I failed:
FontFamily family = new FontFamily(name_for_my_font);
I have tried to list all my fonts in system and indeed I haven't seen required font:
foreach (FontFamily font in System.Drawing.FontFamily.Families)
{
Console.WriteLine(font);
}
But I can see my font in Fonts folder. It has OTF extension. Maybe that is the problem? I can see only TTF fonts. But why? How can I access OTF font from my program?
UPDATE: Sorry the problem is with OTF access but not TTF! I have made corrections in my answer