Docs @ Psychtoolbox Wiki : DrawFormattedText

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Revision [12087]

Last edited on 2010-12-06 10:26:13 by DocBot
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>


Revision [10112]

Edited on 2010-09-09 15:25:44 by DocBot
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>


Revision [9776]

Edited on 2010-01-11 08:29:26 by DocBot
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').


Revision [9725]

Edited on 2009-10-27 09:39:48 by DocBot
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>


Revision [9678]

Edited on 2009-10-27 09:33:57 by DocBot
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>


Revision [9464]

Edited on 2009-02-21 09:31:44 by DocBot
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])


Revision [9283]

Edited on 2008-12-18 07:08:50 by DocBot
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])


Revision [7577]

Edited on 2008-09-25 18:08:30 by DocBot
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%%


Revision [5159]

Edited on 2008-06-15 19:54:38 by DocBot
Additions:
==[[Psychtoolbox]] › [[PsychBasic]]==
Deletions:
==[[Psychtoolbox]] › PsychBasic==


Revision [2757]

Edited on 2008-03-21 03:22:57 by DocBot
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


Revision [2397]

Edited on 2008-03-15 12:08:13 by DocBot
Additions:
===[[DrawFormattedText]]===
==PtbReference › PsychBasic==
Deletions:
===PsychBasic===


Revision [279]

The oldest known version of this page was created on 2008-03-15 10:26:17 by DocBot
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0241 seconds