I write a html text editor using pango, but I don't know how to display image in html text.

2010-02-06 Thread wangxuguang
Hello everyone:     for example: string = "abcdefg a aa a aaa aaa sss sss sss s "http://www.tutorialspoint.com/images/html.gif" width="75" height="75" alt="HTML Tutorial" align="right"> z za aaa aa aaa aaa ."   

Re: [cairo] Pango font thickness

2010-02-06 Thread Edder
On Sat, Feb 6, 2010 at 6:08 PM, wrote: > Hi, > > I'm unfamiliar with APIs of cairomm, but I guess there might > be some "show" like operator that renders the font strictly. > Please search for it, or tune the width of line to thin. Thanks! Replacing pangoLayout->add_to_cairo_context(cr); with pa

Re: [cairo] Pango font thickness

2010-02-06 Thread mpsuzuki
Hi, Thank you for sending sample picture. Oops, I ought to have find that your sample code using "stroke" operator of cairo. I think the issue you report is not font selection - the heavy weight you got is because the path of the glyph outline is drawn by the thick line. If you generate a PDF by P

Re: [cairo] Pango font thickness

2010-02-06 Thread Edder
On Sat, Feb 6, 2010 at 4:43 PM, wrote: > Hi, > > Although I've never played with cairomm/pangomm, but > your report sounds interesting. I think the handling > of weight info in Pango is backend specific; please > find pangoatsui-fontmap.c, pangofc-fontmap.c, pangowin32-fontmap.c, > and pangox-fon

Re: [cairo] Pango font thickness

2010-02-06 Thread mpsuzuki
Hi, Although I've never played with cairomm/pangomm, but your report sounds interesting. I think the handling of weight info in Pango is backend specific; please find pangoatsui-fontmap.c, pangofc-fontmap.c, pangowin32-fontmap.c, and pangox-fontmap.c have their own details. So, which platform you'

[cairo] Pango font thickness

2010-02-06 Thread Edder
Hi all, I am trying to make a simple plotting library using cairomm and pangomm. Currently I have problems with the fonts though. Using pangomm I always get very thick fonts, while I want thin fonts. I tried playing around with font weight etc, but this only has minimal effect. I also played aroun