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
how to use .ttf fonts?
Re: how to use .ttf fonts?
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.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: how to use .ttf fonts?
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/
https://imagemagick.org/Usage/