Revision: 10436 http://pure-data.svn.sourceforge.net/pure-data/?rev=10436&view=rev Author: sevyves Date: 2008-12-10 15:22:48 +0000 (Wed, 10 Dec 2008)
Log Message: ----------- use different fonts for multiple instances
Modified Paths: -------------- trunk/externals/pidip/modules/pdp_text.c
Modified: trunk/externals/pidip/modules/pdp_text.c =================================================================== --- trunk/externals/pidip/modules/pdp_text.c 2008-12-10 15:15:55 UTC (rev 10435) +++ trunk/externals/pidip/modules/pdp_text.c 2008-12-10 15:22:48 UTC (rev 10436) @@ -384,7 +384,6 @@ class_getname(*(t_pd *)x), sfont->s_name ); return; } - imlib_context_set_font( font ); x->x_font = font; }
@@ -447,6 +446,7 @@ imlib_context_set_angle( x->x_angle[ti] ); imlib_context_set_color( x->x_r[ti], x->x_g[ti], x->x_b[ti], 255 );
+ imlib_context_set_font( x->x_font ); imlib_get_text_size( x->x_text_array[ti], &text_width, &text_height);
imlib_text_draw( x->x_xoffsets[ti] - (0.5*text_width) + (cos(x->x_angle[ti]) * x->x_scroll[ti]),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.