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



On 02/07/2010 02:34 AM, wangxuguang wrote:
> 
>           In the first conditions, I must compute the width of space
> beside the picture, compute the last glyph upon the picture and the
> first glyph below the picture, and separate the string to three layouts.
> It is too complex, so I select the 2nd condition. I regard the picture
> as a big glyph, but I don't know how to display the picture (call my
> function "draw_picture" the same as "draw_glyph" ) in pango. 

Check draw_shape method of PangoRenderer and pango_attr_shape_new_with_data().

behdad


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]