Re: I write a html text editor using pango, but I don't know how to display image in html text.
- From: Behdad Esfahbod <behdad behdad org>
- To: wangxuguang <ninesunqian 163 com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: I write a html text editor using pango, but I don't know how to display image in html text.
- Date: Wed, 10 Feb 2010 01:23:38 -0500
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]