> I believe the same goes for vertical white space as well, > ie. "\nTesting\n\n\n" and "Testing" would I think return > the same vertical size.
Yes - that is what I expect/believe it does! > > fl_text_extent() does, however, give you the offset from the > string origin, so for instance the X offset for "This is a test" > and " This is a test" will be different. Yup. For the offscreen coordinate problem, it was the wrapping of the string and symbol expansion I was really worried about, which measure does and text_extents does not... However, as Albrecht points out, we probably don't care about that, since we want to measure strings that have already been formatted for output by fl_draw, so maybe text_extents would be the way to go. Though I do suspect that the calls to measure the font glyphs can involve server trips, and so become uweildy... SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
