Additions:
The function employs window clipping by default. Text lines that are
detected as lying completely outside the 'win'dow will not be drawn, but
clipped away. This allows to draw multi-page text (multiple screen
heights) without too much loss of drawing speed. If you find the clipping
to interfere with text layout of exotic texts/fonts at exotic sizes and
formatting, you can define the global variable...
global ptb_drawformattedtext_disableClipping;
... and set it like this ...
ptb_drawformattedtext_disableClipping = 1;
... to disable the clipping.
Clipping also gets disabled if you request the optional 3rd return
parameter 'textbounds' to ensure correct computation of a bounding box
that covers the complete text. You can enforce clipping by setting
ptb_drawformattedtext_disableClipping = -1; however, computed bounding
boxes will then only describe the currently visible (non-clipped) text.
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m">beta</a> | view WebSVN <a href=
"http://svn.berlios.de/wsvn/osxptb/trunk/Psychtoolbox/PsychBasic/DrawFormattedText.m?op=log">changelog</a> of trunk branch</span>
Deletions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m">beta</a> | view in <a href=
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
Additions:
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
Deletions:
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
Additions:
[nx, ny, textbounds] = DrawFormattedText(win, tstring [, sx][, sy][, color][, wrapat][, flipHorizontal][, flipVertical][, vSpacing][, righttoleft])
WrapString function (See 'help WrapString'). 'wrapat' mode may not work
reliably with non-ASCII text strings, e.g., UTF-8 encoded uint8 strings
on all systems.
The optional argument 'righttoleft' if set to 1, will ask to draw the
text string in right-to-left reading direction, e.g., for scripts which
read right to left
Deletions:
[nx, ny, textbounds] = DrawFormattedText(win, tstring [, sx][, sy][, color][, wrapat][, flipHorizontal][, flipVertical][, vSpacing])
WrapString function (See 'help WrapString').
Additions:
==[[Psychtoolbox]] › [[PsychBasic]]==
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
<code>Psychtoolbox/PsychBasic/DrawFormattedText.m</code>
Deletions:
==[[src]] › [[Matlab]] › [[toolbox]] › [[Psychtoolbox]] › [[PsychBasic]]==
"http://svn.berlios.de/svnroot/repos/osxptb/beta/src/Matlab/toolbox/Psychtoolbox/PsychBasic/DrawFormattedText.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/src/Matlab/toolbox/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
<code>src/Matlab/toolbox/Psychtoolbox/PsychBasic/DrawFormattedText.m</code>
Additions:
==[[src]] › [[Matlab]] › [[toolbox]] › [[Psychtoolbox]] › [[PsychBasic]]==
"http://svn.berlios.de/svnroot/repos/osxptb/beta/src/Matlab/toolbox/Psychtoolbox/PsychBasic/DrawFormattedText.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/src/Matlab/toolbox/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
<code>src/Matlab/toolbox/Psychtoolbox/PsychBasic/DrawFormattedText.m</code>
Deletions:
==[[Psychtoolbox]] › [[PsychBasic]]==
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
<code>Psychtoolbox/PsychBasic/DrawFormattedText.m</code>
Additions:
[nx, ny, textbounds] = DrawFormattedText(win, tstring [, sx][, sy][, color][, wrapat][, flipHorizontal][, flipVertical][, vSpacing])
The optional argument 'vSpacing' sets the spacing between the lines. Default
value is 1.
Deletions:
[nx, ny, textbounds] = DrawFormattedText(win, tstring [, sx][, sy][, color][, wrapat][, flipHorizontal][, flipVertical])
Additions:
[nx, ny, textbounds] = DrawFormattedText(win, tstring [, sx][, sy][, color][, wrapat][, flipHorizontal][, flipVertical])
The optional flag 'flipHorizontal' if set to 1 will mirror the text
horizontally, whereas the optional flag 'flipVertical' if set to 1 will
mirror the text vertically (upside down).
Deletions:
[nx, ny, textbounds] = DrawFormattedText(win, tstring [, sx][, sy][, color][, wrapat])
Additions:
""
<div class="code_header" style="text-align:right;">
<span style="float:left;">Path </span> <span class="counter">Retrieve current version of DrawFormattedText.m from berliOS: <a href=
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/DrawFormattedText.m?view=markup">WebSVN with changelog</a></span>
</div>
<div class="code">
<code>Psychtoolbox/PsychBasic/DrawFormattedText.m</code>
</div>
""
Deletions:
%%(php;Path)Psychtoolbox/PsychBasic/DrawFormattedText.m%%
Additions:
==[[Psychtoolbox]] › [[PsychBasic]]==
Deletions:
==[[Psychtoolbox]] › PsychBasic==
Additions:
==[[Psychtoolbox]] › PsychBasic==
specified position 'sx'. If sx""==""'center', then each line of text is
starts at the specified vertical pixel position. If sy""==""'center', then
%%(php;Path)Psychtoolbox/PsychBasic/DrawFormattedText.m%%
Deletions:
==PtbReference › PsychBasic==
specified position 'sx'. If sx=='center', then each line of text is
starts at the specified vertical pixel position. If sy=='center', then
PsychBasic
Additions:
===[[DrawFormattedText]]===
==PtbReference › PsychBasic==
Deletions:
===PsychBasic===