Hazen Babcock wrote:
> 
> Even though no one objected to adding 4 new functions to the dispatch 
> table, I'm thinking that is probably not the best way after all. Instead 
> I think the best way to do this is to add some new PLESC cases, 
> something like:
> 
> PLESC_BEGIN_TEXT
> PLESC_TEXT_CHAR
> PLESC_CONTROL_CHAR
> PLESC_END_TEXT
> 
> Drivers can then chose whether they want to get all the text at once via 
> PLESC_HAS_TEXT, or broken out character by character by PLplot core via 
> the above.

I've just completed my work on this and the cairo driver now uses this 
alternate approach to text handling. I left in the old text handling 
path for the time being and you can switch the driver back to the old 
text handling path by setting pls->alt_unicode = 0 in the 
stream_and_font_setup function.

Maybe this will make writing drivers easier? At least they won't all 
contain the same while loop now :).

best,
-Hazen


------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to