Search found 36 matches

by him21sri
2017-06-29T04:50:27-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

And can you also explain how pango does word wrap? what will i have to do so that it do word wrap
by him21sri
2017-06-29T04:49:22-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

Ok I managed to control color through foreground attribute of span tag. But I feel there is no effect of MagickSetFont here. Font don't seem to be changing, even if I put some random value then also no effect or no error is thrown.
by him21sri
2017-06-29T04:38:48-07:00
Forum: Bugs
Topic: MagickSetFont silently failing?
Replies: 4
Views: 10867

Re: MagickSetFont silently failing?

Is this fixed in IM 6.8.9-10 because I also can see there is no effect of MagickSetFont in my case. I am doing MagickReadImage(wand, "pango:some text") before this I am setting some font, which is not taking any effect, even if I set some random string in the place of font name then also n...
by him21sri
2017-06-28T02:08:49-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

I tried MagickSetOption(textWand, "background", "blue") this actually turned the background as blue. I am confused why "fill" is not working.
by him21sri
2017-06-28T00:20:50-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

Apart from this the above pasted code by you everything is working except the font color part. I used MagickSetOption as mentioned above but text always coming in black, I tried giving rgb values as well. And I output the result of MagickGetOption for "fill" key I was getting the value wh...
by him21sri
2017-06-27T23:19:10-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

Thanks for your help I was able to draw arabic text. But I am having some other doubts here. I will explain what I want to do first, so there is one mainImage over which I want to overlay a secondaryImage on top of that secondaryImage I want to put some text. Earlier to put some text over a secondar...
by him21sri
2017-06-27T02:57:31-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

Sorry I am asking very basic questions here, but I think api for setting font size, font are all present as DrawingWand api not as MagickWand api. And if we load arabic text using MagickReadImage like : MagickBooleanType status = MagickReadImage (magick_wand, "pango:صَوْرة سِحْر"); It will...
by him21sri
2017-06-26T04:31:14-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

Apart from this is there any other method except Pango. Because I don't want to create a file of text everytime I want to draw some text. I want to use something like what annotate does. Is there any other method which will help me write arabic texts over an image?
by him21sri
2017-06-26T04:23:54-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

But this will load this file's text as an image, how will we specify the font face, color & size to use for this?
by him21sri
2017-06-26T04:06:08-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Re: Pango C API

MagickWand. But ar.txt is the file containing arabic text not the image.
by him21sri
2017-06-26T02:52:59-07:00
Forum: Users
Topic: Pango C API
Replies: 14
Views: 10203

Pango C API

I am using ImageMagick 6.8.9-10 on linux. I am using wands C API to do some image manipulations like adding text or overlaying another image. For drawing text I was using DrawAnnotate method, which works fine for english characters. Now as per the new requirement I want to add arabic text support as...
by him21sri
2017-06-07T02:20:01-07:00
Forum: Users
Topic: Which font to use for non english characters
Replies: 3
Views: 4211

Re: Which font to use for non english characters

Someone please guide here
by him21sri
2017-06-01T00:42:25-07:00
Forum: Users
Topic: Which font to use for non english characters
Replies: 3
Views: 4211

Which font to use for non english characters

My imagemagick version on my linux machine Version: ImageMagick 6.8.9-10 Q16 x86_64 2016-05-20 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC Modules OpenMP Delegates: bzlib cairo djvu fftw fontconfig freetype gslib jng jpeg lcms ltdl lzma openexr ...
by him21sri
2017-05-18T03:39:17-07:00
Forum: Users
Topic: Get the ppi(pixel per inch) of image using C API
Replies: 13
Views: 14106

Re: Get the ppi(pixel per inch) of image using C API

Ok I have an question, so if for an image there is undefined resolution then can I assume the ppi to be 72 and do the above calculations for calculating the pointsize which is nothing but 1px = 1pt in this case. Will that be a correct way to do it for images which don't have a resolution defined? I ...
by him21sri
2017-05-18T00:23:49-07:00
Forum: Users
Topic: Get the ppi(pixel per inch) of image using C API
Replies: 13
Views: 14106

Re: Get the ppi(pixel per inch) of image using C API

Please help here as I am stuck because I am able to get the ppi from console command but not through the C API.