On 03/27/13 11:41, chris wrote:
> Hm, doesn't fl_measure() do all this already?
No, fl_measure() measures typographical area,
whereas fl_text_extents() measures the 'inking area'.
These are very different.
See the test/unittests program, "text rendering" test for a comparison
of the two functions (red vs green boxes)
In particular how the two functions calculate differently the bounding
region
for the characters ('), (-), and (_); fl_measure() returns the x,y and
height
for those characters, whereas fl_text_extents() does not.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev