Cairo, putting gradient on text? 1 Beer to the person who can do it.
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:
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 );