|
|
Use this virtual member function of class Fl_Gl_Window_Driver :
virtual char *alpha_mask_for_string(const char *str, int n, int w, int h, Fl_Fontsize fs); where str is the UTF8 text to draw, n is its length . . .
I looked at this and immediately thought, "is n the size in characters, or bytes?" and then wondered whether it would make sense, over time, to rename "str" variables as "utf8" and "n" variables as "nbytes" so it would be more obvious and self documenting.
Just a thought
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/2bb0fb06-4a6b-44b8-96e4-c7ad7ad74d63n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |