Re: How to set background color for a pango layout being printed ?



On Wed, 2007-10-17 at 08:40 +0200, Miroslav Rajcic wrote:

PangoAttribute *attr1 = pango_attr_background_new(bkgcolor.red,
bkgcolor.green, bkgcolor.blue);
pango_attr_list_insert (layout_attr, attr1); 

attr1->start_index = 0;
attr1->end_index = -1;

Same for other attributes.

-- 
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]