Pango Additions

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

Pango Additions

Post by anthony »

This topic was split and moved out of IMv7 What is Happening, and turned into a separate topic


The various formatting features are available now as part of captions new use of 'pango'.
This is a new addition and still evolving...

Code: Select all

convert -define caption:markup=true \
           -define caption:justify=center \
           caption:"`cat pango_test.txt`" show:
Image
The pango text file is downloadable from
https://dl.dropbox.com/u/9500683/pango_test.txt

The reason a `cat ...` is used is because since the addition the '@' file read has been broken! :(

Other things broken is the use of colors!

The more direct pango way of doing this is...

Code: Select all

pango-view --align=center --markup pango_test.txt
Image
Note however the size may be different due to density changes (IM defaults to 72, pango to display or 96 in my case)

ASIDE: I always felt it was better to make it a seperate coder such as "pango:", instead of changing "caption:" in such a dramatic way and requiring the use of a define. Though it does make some sense (so as to allow other text to image convertors)

As for kerning. That is not up to IM but the delegate libraries IM uses.
Other features are typically handled through font selection.
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

Re: IMv7 What is happening

Post by Bonzo »

In another thread about using shell scripts on a Windows loacalhost you say:
However for full UNIX shell processing (scripts) you may need other commands, like ls, cat, sed, awk, grep, find, xargs, etc.
Does this mean that 'Pango' use will be unavailable on Windows?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: IMv7 What is happening

Post by anthony »

I do not believe it is available under windows, only Linux and Macs. I could be wrong, but I doubt it.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Pango Additions

Post by anthony »

This topic was split and moved out of IMv7 What is Happening.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply