DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2530
Version: 1.3-current


Yes. In order to calculate word wrapping, Fl_Text_Display runs up and down
the string, calculating its width sometimes on a per-character base.
Calculating and rendering strings in OS X is extremely slow (but also
extremely beautiful - yu can't have it all ;-).

One solution would be a complete recoding of Fl_Text_Display, so that text
chunks remember their own position and size. This would reduce the need to
recalculate the widths, except when resizing the widget.

Alternatively, since we are recalculating the width of the same text
segments over and over, we could use some smart caching and avoid calling
the OS X measurement methods more than once. This would also greatly
accelerate label rendering.


Link: http://www.fltk.org/str.php?L2530
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to