|
|
Please, consider in https://github.com/ManoloFLTK/fltk.git, branch fast-pango
an implementation of solution 2 exposed above, that is, where all of unicode is considered.
Furthermore, this code modifies computations of string widths only within the Fl_Text_Display
widget and only when it's in word wrap mode. That is achieved by a new virtual member function
of class Fl_Graphics_Driver
virtual double fast_width(const char *str, int n) {return width(str, n);};
which is re-implemented only under X11+pango and which is used only
in function Fl_Text_Display::string_width(). The modified code therefore impacts (for the better) only
Fl_Text_Display widgets in word wrap mode and only under the X11+pango platform.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
[ Direct Link to Message ] | |
|
| |