Page 1 of 1

font size

Posted: 2010-11-01T17:05:56-07:00
by nzlyoung
Hi,

I am trying to preview the text on the browser and will generate a document (pdf) destined to print so preview needs to be same as
the print.

Just wondering if there is any way to match the font-size (pixel perfect) on the web with imagemagick created image or pdf.

I need to get this exactly the same for design purpose. I've tried using exact size (e.g. 12pt) on the web and -pointsize 12 but somehow imagemagick created document is much smaller.
I'm new to this image magic world so any help will be much appreciated.

Regards,

Don.

Re: font size

Posted: 2010-11-01T17:24:40-07:00
by fmw42
with pdf as output, you need to specify the -density and -units to control the size of the output image (as dots per inch or dots per centimeter) as viewed on the browser. But the browser can change the size of a pdf to anything desired. So it is really just a matter of the quality produced by the -density.

see

http://www.imagemagick.org/script/comma ... 35#density
http://www.imagemagick.org/script/comma ... co35#units
http://www.imagemagick.org/Usage/formats/#pdf