Font Spacing Problem between Photoshop and ImageMagick
Posted: 2010-07-24T07:26:10-07:00
Hello Experts,
I am baffled with font spacing problem between photoshop and imagemagick. I am trying to explain the problem below:
1. I open Photoshop, create a new file, white background, 72dpi RGB.
2. I choose "Impact" font, 70pt, Sharp. All other character settings are default (such as Auto, 0, 100% etc).
3. I write the text "Engaging" using the text tool.
Now, I use imagemagick to generate the same text using the following command:
Note that I have copied the impact.ttf font from my C:\Windows\Fonts directory to the folder where I am executing the convert command. So both Photoshop and ImageMagick are using the same font file.
Next, I open the text_test.png file in Photoshop, copy all, paste it on my previous file as a new layer. What I see is, the height of the characters are perfectly fine, but the width of text generated from ImageMagick is less than that in photoshop. I am not sure if the spacing is less or width of each character, but somehow the text generated with ImageMagick does not match that in photoshop.
Here is a screenshot of the above problem to help understand the problem:
Can anyone guide me if I am doing anything wrong? Any help will be highly appreciated.
Thank You.
I am baffled with font spacing problem between photoshop and imagemagick. I am trying to explain the problem below:
1. I open Photoshop, create a new file, white background, 72dpi RGB.
2. I choose "Impact" font, 70pt, Sharp. All other character settings are default (such as Auto, 0, 100% etc).
3. I write the text "Engaging" using the text tool.
Now, I use imagemagick to generate the same text using the following command:
Code: Select all
convert -depth 8 -density 72 -background transparent -fill red -font './impact.ttf' -pointsize 70 label:'Engaging' text_test.png
Next, I open the text_test.png file in Photoshop, copy all, paste it on my previous file as a new layer. What I see is, the height of the characters are perfectly fine, but the width of text generated from ImageMagick is less than that in photoshop. I am not sure if the spacing is less or width of each character, but somehow the text generated with ImageMagick does not match that in photoshop.
Here is a screenshot of the above problem to help understand the problem:
Can anyone guide me if I am doing anything wrong? Any help will be highly appreciated.
Thank You.