Page 1 of 1

Finding Font when rendering in windows

Posted: 2006-06-20T08:45:28-07:00
by rperez
Hello All,
I am using ImageMagick 6.2.8-0 under windowsXP. I am trying to render text into an image. I am using the following code:

typeInfo = GetTypeInfoByFamily(fFontFace.c_str(),fFontStyle,NormalStretch,fFontWeight,&exceptionInfo);

mImage->font(typeInfo->name);

mImage->annotate(fText,fGravity);

The problem is that I never manage to find the fonts that are bold or italic (e.g. if I ask for Arial Bold the typeInfo->wight == 400 and the text is rendered as regular).

what am I doing wrong?

Thanks,
Ronen.