Text with font in special folder

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
hknight
Posts: 32
Joined: 2007-08-02T10:16:15-07:00

Text with font in special folder

Post by hknight »

Hello,

I have a collection of truetype fonts in a special directory. One of the fonts is special.ttf:

/home/me/fonts/special.ttf

I want to create an image with the text: Hello World

How can I use my special font without installing it in the ImageMagic font directory?

Thanks!
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Text with font in special folder

Post by Bonzo »

Code: Select all

-font /home/me/fonts/special.ttf
Although I would use the relative path from the script.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Text with font in special folder

Post by anthony »

Or create your own "type.xml" file in ".magick" sub-directory of your home (assuming you are on a unix-like machine, like linux, Solaris, or MacOSX).

See the top level page of IM examples
http://www.imagemagick.org/Usage/#font
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply