# Problems with CopyWindow in Combination with DrawText

**URL:** <https://psychtoolbox.discourse.group/t/problems-with-copywindow-in-combination-with-drawtext/1810>\
**Category:** Uncategorized\
**Created:** [April 27, 2007, 6:20pm UTC](https://psychtoolbox.discourse.group/t/problems-with-copywindow-in-combination-with-drawtext/1810 "2007-04-27T18:20:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [April 27, 2007, 6:20pm UTC](https://psychtoolbox.discourse.group/t/problems-with-copywindow-in-combination-with-drawtext/1810/1 "2007-04-27T18:20:00Z")

</div>

Hello,  
  
I am designing a test with a row of stimuli, presented to the probands.  
I want to use CopyWindow, because there are many Stimuli presented in  
one row and the 'interface' is always the same, only the stimulus in  
the middle of the screen changes.  
  
and here is my problem:  
When I create an OffScreen an build the 'interface' there, using   
Screen(w,'DrawText','TEST',50,50,[0,0,0]);  
the output will be very bad, in fact in can't read the word 'TEST',  
there are only some small fragments.  
Using pictures, everything is fine, but i really need to use text!  
  
  
Is this a known problem? Or is there anything wrong with my pc?  
I am using Windows XP, maybe it is just a windows problem (at the end,  
this test has to run on a mac).  
  
here are 2 pictures:  
1. this is how it should look like:  
[http://img356.imageshack.us/img356/9819/gutes9.jpg](http://img356.imageshack.us/img356/9819/gutes9.jpg)  
  
2. this is how it actually looks after CopyWindow:  
[http://img260.imageshack.us/img260/4263/schlechtlg6.jpg](http://img260.imageshack.us/img260/4263/schlechtlg6.jpg)  
  
  
  
i hope someone understands the problem, my english isnÄt that great ^^  
-  
baerenkater

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [April 27, 2007, 8:05pm UTC](https://psychtoolbox.discourse.group/t/problems-with-copywindow-in-combination-with-drawtext/1810/2 "2007-04-27T20:05:56Z")

</div>

Known problem, see the Bug section on the Wiki. Try this:  
  
Screen('TextSize',w, 24); % Make text bigger  
Screen('TextStyle', w, 1); % Enable bold text.  
  
Only Windows is affected. Text rendering on OS/X is much  
nicer.  
  
-mario  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "baerenkater" \<baerenkater@...\> wrote:  
> \>  
> \> Hello,  
> \>   
> \> I am designing a test with a row of stimuli, presented to the probands.  
> \> I want to use CopyWindow, because there are many Stimuli presented in  
> \> one row and the 'interface' is always the same, only the stimulus in  
> \> the middle of the screen changes.  
> \>   
> \> and here is my problem:  
> \> When I create an OffScreen an build the 'interface' there, using   
> \> Screen(w,'DrawText','TEST',50,50,[0,0,0]);  
> \> the output will be very bad, in fact in can't read the word 'TEST',  
> \> there are only some small fragments.  
> \> Using pictures, everything is fine, but i really need to use text!  
> \>   
> \>   
> \> Is this a known problem? Or is there anything wrong with my pc?  
> \> I am using Windows XP, maybe it is just a windows problem (at the end,  
> \> this test has to run on a mac).  
> \>   
> \> here are 2 pictures:  
> \> 1. this is how it should look like:  
> \> [http://img356.imageshack.us/img356/9819/gutes9.jpg](http://img356.imageshack.us/img356/9819/gutes9.jpg)  
> \>   
> \> 2. this is how it actually looks after CopyWindow:  
> \> [http://img260.imageshack.us/img260/4263/schlechtlg6.jpg](http://img260.imageshack.us/img260/4263/schlechtlg6.jpg)  
> \>   
> \>   
> \>   
> \> i hope someone understands the problem, my english isnÄt that great ^^  
> \> -  
> \> baerenkater  
> \>
