Finding Font when rendering in windows

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply

Finding Font when rendering in windows

Post 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);



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?


Post Reply