rendering text fails at some pointsizes

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

rendering text fails at some pointsizes

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: rendering text fails at some pointsizes

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: rendering text fails at some pointsizes

Post 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?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply