Strange Problem with FontTypeMetrics

Oct 16, 2014 at 9:02 PM
I have very strange problem - I have custom font installed and I am trying to write text with it.
I checked that font is properly installed. I see it in "convert -list font" command.

I am creating new image. Setting up font and size:
image.Font = "CustomFontName";
image.FontPointsize = 100;

but when I try

image.FontTypeMetrics("sometext") it is always null.

So does anyone have idea what am I missing?
Font is in OTF format if this is any help..

Thank you in advance.
Oct 17, 2014 at 5:12 AM
Can you post the font you are using on something like DropBox? Feel free to contact me trough CodePlex if you don't want to publicly share your font file.
Oct 17, 2014 at 8:10 AM
After continuing this conversation by e-mail we found a solution for this. Specifying the full path to the font file fixed the problem:
image.Font = @"C:\fonts\CustomFont.otf";
image.FontPointsize = 100;