Page 1 of 1

how to use .ttf fonts?

Posted: 2008-09-10T10:54:07-07:00
by acctman
How do I upload my own .ttf font to use with imagemagick?

Also is it better to use font text for watermarking or image overlay of a transparent .png? Both would have to be enlarged or decreased in size according to the width/height of the main image

Re: how to use .ttf fonts?

Posted: 2008-09-10T11:02:07-07:00
by Bonzo
You can upload the font and call it from the code -font path/to/font or I presume you can edit one of the xml file but not sure.

Fonts never look great after being enlarged or reduced but I would create a transparent png with either an image or text on the server and use that to watermark the image as I think its easier to resize.

Try some different methods out and see what gives you the best effect.

Re: how to use .ttf fonts?

Posted: 2008-09-10T18:28:39-07:00
by anthony
The file to modify is "type.xml" can you can have a personal version in the ".magick" sub-directory of your home. I talk about this on the very top level page of IM examples. Though I probably should create a full section on 'font' file handling.