Mercurial > projects > dwt-win
changeset 295:f478f12be363
Some doc
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 22 Aug 2008 15:22:13 +0200 |
parents | 1973f21c5c6f |
children | 4289aa6cbc0c |
files | dwt/graphics/TextLayout.d |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/graphics/TextLayout.d Fri Aug 22 15:15:19 2008 +0200 +++ b/dwt/graphics/TextLayout.d Fri Aug 22 15:22:13 2008 +0200 @@ -12,6 +12,19 @@ *******************************************************************************/ module dwt.graphics.TextLayout; +/++ + + DWT Changes to make the port work. + + The USER API is utf8, the Windows API is utf16. In addition to the fields 'text' and 'segmentsText' fields are added to help. + + wtext: same as text but utf16 + + segmentsWText: same as segmentsText but utf16 + + index8to16: translate indexes from segmentsText to segmentsWText + + index16to8: translate indexes from segmentsWText to segmentsText + + + + 'text' is the original user text, 'segmentsText' is the user text stuffed with + + RTL/LTR markers for each line or in addition for User supplied segments. A segment + + is a range where Bidi char reordering can happen. + + The 'runs' are those ranges with an idiviual style. + +/ import tango.util.log.Trace; import dwt.DWT;