> > Why the fltk app appears correct on OSX I am not sure - it 
> may be that the Apple text renderer under Quartz is "fixing" 
> things for us, which I find unexpected.
> 
> Ah, this is a right-to-left script?! 

Um, no, I do not think it is, though I do not know for sure. I think the
Indic scripts are generally l2r the same as LGC scripts.
The do have complex rendering issues though, with complex rules for
ligatures and position dependent glyph layout.

> FLTK leaves it to the 
> operating system to render r2l correctly. This works well for 
> labels on OS X, but not for the editors. Other platforms need 
> specific calls, I think, and there is even a call to render 
> r2l, but that doesn't help with labels.

Yup - that's what I thought, too, but it really appears, at least in
this case, that the Apple CTL is "correcting" our rendering of the
strings for us, which I really did not expect.
The Linux text rendering is *not* fixing it for us, so the string needs
to be pre-composited before passing to fltk for rendering...


> The problem is, that we'd need a lookup table to know which 
> characters are r2l and a big rule book to do this correctly. 
> We might be able to do this, but at a certain point, we may 

Yup - and it's called ICU, or maybe PanGo...

> be better off linking with pango at run-time, if available. 
> Unfortunately I don't speak, read, or write any r2l script language.

...ditto... Though there must be a truckload of devs out there who do,
if only we could get some of them to show an interest...




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

Reply via email to