Determining size of text rendered by IM

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Storm.50
Posts: 2
Joined: 2012-09-10T07:29:01-07:00
Authentication code: 67789

Determining size of text rendered by IM

Post by Storm.50 » 2012-09-10T07:56:46-07:00

Hello!
I've question about determining size of text rendered by IM.
There are two methods described at this page.
How in Magick++ I can use the first one which uses -debug key? In example output info getting from console. How can I read this info in my program with Magick++?
Thanks for your answers!

User avatar
magick
Site Admin
Posts: 11098
Joined: 2003-05-31T11:32:55-07:00

Re: Determining size of text rendered by IM

Post by magick » 2012-09-10T08:22:07-07:00

Use the fontTypeMetrics() to return the font metrics in the TypeMetric structure.

Storm.50
Posts: 2
Joined: 2012-09-10T07:29:01-07:00
Authentication code: 67789

Re: Determining size of text rendered by IM

Post by Storm.50 » 2012-09-11T06:47:17-07:00

Thank you, magick!
This is what I wanted to know.

Post Reply