Search found 2 matches

by flying_camel
2015-06-19T11:41:23-07:00
Forum: Magick++
Topic: How to know the bounds of a single character?
Replies: 2
Views: 11154

Re: How to know the bounds of a single character?

Thanks for your answer.

Here is an example of how I get it now. Not sure if it is the best way, but it seems to work.


#include <Magick++/Geometry.h>
#include <Magick++/Image.h>
#include <Magick++/Drawable.h>

using namespace Magick;

int main(int argc, char** argv)
{
Image img(Geometry(600, 400 ...
by flying_camel
2015-06-19T09:20:25-07:00
Forum: Magick++
Topic: How to know the bounds of a single character?
Replies: 2
Views: 11154

How to know the bounds of a single character?

Hello,
I am using a monoapaced font (DejaVu-Sans-Mono) to render some text on an image. I know the size of the image, its density, and its font point size. Since I am using a monospaced font, I assume that all the symbols reserve the same size. Is it possible to figure out this size?

Basically, I ...