I have some text in cairo, and I set the text to a path using: cairo_text_path(). That allows me to perform fills on it just fine. But I can't seem to get a gradient to display. It is only showing the first 'stop' color. Here's the relevant code:
Code:
cairo_pattern_t *radpat;
radpat = cairo_pattern_create_linear (0,0,0,1);
cairo_pattern_add_color_stop_rgb (radpat, 0 , .2 ,0, 0 );
cairo_pattern_add_color_stop_rgb (radpat, 1 , .7,.7,.7 );
cairo_text_path(crtemp4,tempoption->companyname);
cairo_set_source(crtemp4,radpat);
cairo_fill(crtemp4);
Any thoughts?