Hi list, i'm working on a patch with two instances of pdp_text object. Two (or more) pdp_text object should work independently from eachother, but this is not totally true, not with the font argument. If I change font type or font size in one of two players, it change on both. I made an example patch with two independent pdp_txt object with independent glx output. But I have same result by put both on the same glx output. Is this a bug? Any solution or workaround? Someone knows anything about?
example patch: http://www.estereotips.net/qeve/doc/pdp_text.zip
thanks Husk
ola,
it's a limitation here, as we use the imlib library that lets sets the font only globally in your application with :
imlib_context_set_font( font );
i don't know any workaround for it.
saluti, sevy
husk wrote:
Hi list, i'm working on a patch with two instances of pdp_text object. Two (or more) pdp_text object should work independently from eachother, but this is not totally true, not with the font argument. If I change font type or font size in one of two players, it change on both. I made an example patch with two independent pdp_txt object with independent glx output. But I have same result by put both on the same glx output. Is this a bug? Any solution or workaround? Someone knows anything about?
example patch: http://www.estereotips.net/qeve/doc/pdp_text.zip
thanks Husk
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
ydegoyon wrote:
ola,
it's a limitation here, as we use the imlib library that lets sets the font only globally in your application with :
imlib_context_set_font( font );
i don't know any workaround for it.
How about storing a different 'font' in each instance of 'pdp_text', and calling imlib_context_set_font() every time just before drawing text?
Or would that be too inefficient?
saluti, sevy
Thanks,
Claude