# HG changeset patch # User Frank Benoit # Date 1219411333 -7200 # Node ID f478f12be363241ba20f1a10caf8c79a6c4478f6 # Parent 1973f21c5c6fe00a0fb0eab9345d183bc374e50d Some doc diff -r 1973f21c5c6f -r f478f12be363 dwt/graphics/TextLayout.d --- 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;