how to use .ttf fonts?

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
acctman

how to use .ttf fonts?

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: how to use .ttf fonts?

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

Re: how to use .ttf fonts?

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