> a guy sent me a shot of my app running on his system in which > the fonts > render upside down. any idea what could cause this? > shot: http://prodatum.sf.net/tmp/fud.jpg > looks like a leopard system (based on the background image), > which is what > I use, but I never got this special effect here. > note that FLTK 1.1.9 is hard linked into the distributed binary.
Yup - if this is an OSX system (and from the window decorations that looks likely) then there's a possible issue with font handling. The details are a bit vague in my memory, so if anybody else recalls this more clearly, please jump in, but what I remember goes like this: The Apple font system uses a co-ordinate frame with the origin at lower left, and fltk uses a co-ordinate frame with the origin at top left, so whenever fltk renders text on OSX, a transform is applied (in the OSX layer) that flips the axis as required. But something weird happens if you request a font that does not exist on the target system, where the OSX text handling falls back to some default fail-safe font (so the text is still rendered) but the scaling and transformation gets munged in some way (that I don't know the details of) so that the text ends up the wrong size and upside-down. I think this is what has happened here - your code has tried to load a font that does not exist on the target system and the fall-back font has munged the transforms. Well, that's one guess, anyway... -- Ian SELEX Sensors and Airborne Systems Limited 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 mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

