> I have thus committed a new algorithm for Mac GL text drawing: > 1) Allocate a pile of pre-computed textures of default size 100. > 2) To draw a text string do > - if the corresponding texture is in the pile, map it to > the GL scene > - if not, pre-compute the corresponding texture and map it > + if the pile is not full, put the texture in the pile > + if not, remove the most ancient pile element, and put > the new texture in the pile.
Might get smaller bitmaps by using fl_text_extents() rather than fl_measure(). In general, fl_measure() returns a larger bounding box as it takes account of the typical height of the font, whereas fl_text_extents() computes the smallest bounding box that will enclose the actual "printed" part of the text... Might be worth a shot - though perhaps fl_measure() is what you want in this case? 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
