diff options
| author | Manolo Gouy <Manolo> | 2011-01-24 15:30:14 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-24 15:30:14 +0000 |
| commit | f9363c16d0e6518ba82d05f1f7f415e9224a8e35 (patch) | |
| tree | 650061a5071eff676869e4e1da99f223932534ba /FL/Fl_Spinner.H | |
| parent | 1b146a48371b72e510d6bb6277fb6256c1f9e17a (diff) | |
Fix STR #2530 (Mac OS only). Implements a fast algorithm for fl_width() that memorizes the
width of all characters the first time they are seen and computes the width of a string
as the sum of the widths of its characters. Char widths are memorized in 256 blocks of 256 widths;
only blocks used in some text are allocated and computed. The width of characters beyond
U+FFFF is computed anew each time. Strings are drawn using core text, after having
deactivated character kerning, so their width is the sum of the widths of their characters.
This is the same algorithm as used for WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Spinner.H')
0 files changed, 0 insertions, 0 deletions
