Re: Pango Rendering API
- From: Owen Taylor <otaylor redhat com>
- To: soheil hassas yeganeh <hassas ce sharif edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Pango Rendering API
- Date: 17 Aug 2003 12:56:39 -0400
On Sat, 2003-08-16 at 08:20, soheil hassas yeganeh wrote:
Dear All
I call the pango rendering API directly from a gtk+ application
I first user pango_itemize routine, after, pango_shape routine, and after
i call the pango_xft_render, but i doesn't show anything on the main frame
!!!
Look at the docs for gdk_window_get_internal_paint_info()
What can i do to render the text directly by pango API ????
If you are using it in a GTK+ program, just use gdk_draw_layout(),
it's the same as using the low level calls but:
- Takes care of drawing to the right target; it knows about
double buffering.
- It uses the right backend - pango_xft_render(), pango_win32_render()
or whatever is appropriate.
- It creates the XftDraw automatically.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]