fontsize

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
leyn
Posts: 8
Joined: 2011-11-09T02:45:30-07:00
Authentication code: 8675308

fontsize

Post by leyn »

Hi,

I have 2 Imagemagic commands:

convert \
-size 529x70 \
-pointsize 24 \
-gravity center \
label:'Feliz Natal e Bon Ano Novo' \
footer.png

and

convert \
-size 529x70 \
-pointsize 24 \
-gravity center \
label:'Para Kina e Jose' \
header.png

They both have pointsize 24 but nevertheless result in fonts wich have different size.

What is going wrong here?

Best regards,

Francky
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: fontsize

Post by Bonzo »

Works OK for me - same size text.
leyn
Posts: 8
Joined: 2011-11-09T02:45:30-07:00
Authentication code: 8675308

Re: fontsize

Post by leyn »

Bonzo wrote:Works OK for me - same size text.
Place the 2 .png images next to one another: they have the same width and height,
and are both complelely filled with text. The font sizes however differ by a factor
of approximatly 2. I don't want this: the font sizes have to be the same.

Best regards,

Francky
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: fontsize

Post by Bonzo »

Well as I say it works OK for me so you need to provide more information on your version and setup.
leyn
Posts: 8
Joined: 2011-11-09T02:45:30-07:00
Authentication code: 8675308

Re: fontsize

Post by leyn »

Bonzo wrote:Well as I say it works OK for me so you need to provide more information on your version and setup.
Yes, it works ok, but it's not what I want.

I have tried it on PC cygwin and under UNIX Ubuntu.
It has nothing to do with this. It's just that the stearing
is wrong in some way.

It's a pitty a can't attach an image file. Anyway, look good
at the images next to one another. The font of header.png is twice
as large as that of footer.png.

Best regards,

Francky
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: fontsize

Post by fmw42 »

I have no problem with your commands either. The font sizes are the same. I alternated displaying the images quickly and can see no difference in font size.

Image
Image

Two points:

1) what version of IM and freetype are you using on each platform
2) try defining a specific font, each system may have a different default font.

I am running IM 6.7.4.0 Q16 Mac OSX Snow Leopard.

P.S.

You can find numerous free image hosting sites, such as dropbox. Upload your images there and then put links in your post here to those images.
leyn
Posts: 8
Joined: 2011-11-09T02:45:30-07:00
Authentication code: 8675308

Re: fontsize

Post by leyn »

fmw42 wrote:I have no problem with your commands either. The font sizes are the same. I alternated displaying the images quickly and can see no difference in font size.

Image
Image

Two points:

1) what version of IM and freetype are you using on each platform

Let's concentrate on the Linux platform:
IM 6.3.7 on Linux Ubuntu

How do I determine the freetype?

2) try defining a specific font, each system may have a different default font.

On
http://www.deei.fct.ualg.pt/~leyn/Jose.tar
you can see what I get as result.

I am running IM 6.7.4.0 Q16 Mac OSX Snow Leopard.

P.S.

You can find numerous free image hosting sites, such as dropbox. Upload your images there and then put links in your post here to those images.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: fontsize

Post by fmw42 »

Your version of IM is not honoring the pointsize and is just using the width or height to determine the pointsize. That is what it looks like to me. Best I can suggest is upgrade your IM.

type

find /usr | grep "freetype"

somewhere in the list it should show the version number.

But I suspect it was a bug in IM in your version. IM 6.3.7 is very old.
Post Reply