On 27 Mar 2013, at 20:16, chris wrote:
Ah, I think I understand the difference now, will have a look at the test
tomorrow...
Though at now cannot imagine a use case for knowing the inking area.
Ah, but it turns out that there are quite a lot of uses for knowing the inked
area of a typographical element.
Not so much for rendering strings of text though; in that case fl_measure if
usually the right thing.
But if you are rendering text for other purposes, it is often beneficial to
know what the actual extents are, since they are usually smaller, some times
much smaller, than the sizes reported by fl_measure.
Even using fonts decoratively, it is useful to know the extents...
For my own part, for example, I often use fl_text_extents to measure glyphs
from musical fonts, to ensure that they are positioned on the staff accurately,
and suitably sized. The values returned by fl_measure are pretty well useless
for this purpose.
So, maybe not all that everyday a use case for most folks, I guess, but a real
one nonetheless!
Cheers,
--
Ian
___
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev