On 07/18/2011 01:58 PM, Michael Sweet wrote:
> On Jul 18, 2011, at 4:43 PM, Ian MacArthur wrote:
>>> ...
>>> Ooops, must have deleted the rest by accident - "This could be used
>>> to reposition widgets and change the appearance of widgets."
>>
>> Oh, I see; so if we determine the text is predominantly r2l for
>> example, we could redraw the widgets for a r2l biased layout, that
>> sort of thing?
>> E.g. move the buttons in a stock dialog to the lower left rather than
>> lower right, and so on? (Do we / should we, do that for r2l text? I
>> don't know...)
>
> On the Mac, at least, we localize R2L languages with the position and
> order of controls reversed.
>
> ________________________________________
> Michael Sweet, Easy Software Products

I recommend using Cairo and Pango on X11 platforms. We need to scrap all 
the legacy X11 api.

Cairo/Pango are unfortunately not as fast as they should be. However it 
actually does a far better job of correctly laying out text than either 
OSX or Windows. You need to use Cairo because Pango is dreadfully slow 
drawing into anything other than an image buffer, which Cairo gives you.

Pango's api pretty much takes entire blocks of text and a box to put 
them into. It would replace a very high level drawing api in fltk.

The OS/X and Windows systems should be rewritten to call their api at 
this same high level.


_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to