Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] GC.drawText vs TextLayout

I am assuming you are concerned about Windows, since for GTK and Cocoa, the same technology is used in GC and TextLayout.

GC uses GDI functions to draw/measure text.  
TextLayout uses Uniscribe functions to draw/measure text.

If you care about BIDI support (writing a text editor, for example), you should probably use the TextLayout APIs otherwise GC APIs should be sufficient.

Note that you might get better answers in the SWT newsgroup.

Silenio



From:        Marek Jasovsky <jasovsky.marek@xxxxxxxxx>
To:        platform-swt-dev@xxxxxxxxxxx,
Date:        07/22/2012 03:12 AM
Subject:        [platform-swt-dev] GC.drawText vs TextLayout
Sent by:        platform-swt-dev-bounces@xxxxxxxxxxx




Hi everyone.

could you please help me in explaining, what is the core difference between GC.drawText and methods used for rendering text within TextLayout? they seem to be using completely different kind of Text API.

what I need is being able to measure text (words, splitting I have to do by myself) and then use plain most simple API to draw a text, so maybe prererably GC.drawText

what I have seen from TextLayout, those API is not suitable for me, that's why my worries, whether these 2 API are different in some way.

thank you a lot in advance for your help

best regards

Marek Jasovsky_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top