Problems drawing Text

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

Post by Bonzo »

From what I gather Fighterly you can not format the text but have to use text that is already formatted.

On my system I have for example:
Courier
Courier-Bold
Courier-BoldOblique
Courier-Oblique

You can change the font size and colour.

You can use -list font or something to list the fonts installed or ask your hosts to let you know what they have installed.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

The list fonts is...
identify -list type

IM is not a word processor, and can only format text in one font at a time.
That does not mena it is impossible, just more difficult.

For methods and suggections as will as some alturnatives see...
IM Examples, Text to Image handling, Creating Lines of Mixed Font Styles
http://www.cit.gu.edu.au/~anthony/graph ... font_lines

If you discover anything more, please let us, and especially me know so I can update IM Examples.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

Out of interest Anthony have you seen my example here http://www.rubblewebs.co.uk/imagemagick ... k_text.php

I have written a bit of php where the user inputs the text into a form and each letter is picked from a directory and appended to create the text in an image. In this case the text image is used to watermark a photo.

It needs a text that is spaced properly but it was only done as a test.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

I saw the page though I did not see individual letter picking on that page.
The watermarking is heavy though. more copyright protection rather than watermarking but it does the job.

Have you see the latest addition to the end of the annotation page in response to another forum users request. EG compound font overlaying.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply