Re: How to set background color for a pango layout being printed ?
- From: Behdad Esfahbod <behdad behdad org>
- To: Miroslav Rajcic <rajcic sokrates hr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to set background color for a pango layout being printed ?
- Date: Tue, 16 Oct 2007 11:58:00 -0400
On Tue, 2007-10-16 at 12:13 +0200, Miroslav Rajcic wrote:
layout = gtk_print_context_create_pango_layout (context);
pango_layout_set_text (layout, text, -1);
cairo_set_source_rgb (cr, bgcolor.red, bgcolor.green, bgcolor.blue);
cairo_paint (cr);
//set fg color
cairo_set_source_rgb (cr, color.red, color.green, color.blue);
//HOW to set bkg color for the layout?
cairo_move_to (cr, nPosX, nPosY);
pango_cairo_show_layout (cr, layout);
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]