DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2550 Version: 1.3-current > So it's not at all a matter of using XTextExtents(), then? Well, I had a brief look then lost heart again. Short answer, no, XTextExtents() will not do. We'd need to extend .../src/xutf8/utf8Wrap.c to add our own XUtf8TextExtents function, modeled after XUtf8TextWidth(), and then use that - I imagine it would probably depend on XTextExtents16() though, rather than the "plain" XTextExtents(). That might then work - though I'm not sure if XTextExtents() returns the "inked" bounding box, or the "typographical" bounding box. If the latter, then the result will be very much like the existing code anyway, so may not be worth the effort. The distinction between fl_text_extents() and fl_measure() is that the former bounds just the "inked" area, the latter the "typographical" area... Link: http://www.fltk.org/str.php?L2550 Version: 1.3-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
