Page 1 of 1

rendering text fails at some pointsizes

Posted: 2011-01-09T08:59:23-07:00
by javismiles
hi and thank you for your help in advance,
i am doing a simple rendering of a text with this command

convert -background none -fill #ffffff -font Arial -pointsize 14 -gravity West label:"Example" result.png

the problem is that with some of the fonts i need to use, some pointsizes fail to render.
For example, the font RingBearer, its pointsize 14 fails to render with imagemagick but works perfect in photoshop.
I have found some other fonts where i have the same problem, all pointsizes work except for a few usually of a small size that fail to render correctly,
how could i solve this?

at the beginning i thought the problem could be in the font file, but i see that photoshop renders all the sizes with no problems, so is the problem then in imagemagick?

thank u very much
jav

Re: rendering text fails at some pointsizes

Posted: 2011-01-09T13:47:21-07:00
by fmw42
I am no expert on fonts, but it is possible that PS has its own internal versions of your font and that the version you are using in IM has limited font sizes available to it. Perhaps you need to check the sizes of that font or download a different ttf version. Also perhaps IM does not know about all the font sizes. See Anthony's script imagick_type_gen.pl at http://www.imagemagick.org/Usage/scripts/ to regenerate your type.xml file. Or you could specify the full path to your ttf font. Is your font a ttf font?


Also what version of IM are you using. If old, perhaps you need to upgrade.

Re: rendering text fails at some pointsizes

Posted: 2011-01-09T21:21:11-07:00
by anthony
A TTF font is a vector language that has a few rules that modify a font slightly as small sizes.
Both IM and PS should be able to render the font at all pointsizes.

However you have not provided an example of how IM goes wrong.
Do you have a URL for this 'RingBearer' font?
Can you add some links to images of the results?