# Overestimation of TextBounds!?

**URL:** <https://psychtoolbox.discourse.group/t/overestimation-of-textbounds/581>\
**Category:** Uncategorized\
**Created:** [May 18, 2010, 6:10pm UTC](https://psychtoolbox.discourse.group/t/overestimation-of-textbounds/581 "2010-05-18T18:10:32Z")\
**Posts on this page:** 1\
**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:** [May 18, 2010, 6:10pm UTC](https://psychtoolbox.discourse.group/t/overestimation-of-textbounds/581/1 "2010-05-18T18:10:32Z")

</div>

Dear Psychtoolbox experts,  
  
I'm trying to estimate the pixel size of 'x' by Screen('TextBounds').  
Unfortunately, even though the aspect ratio of 'x' is roughly 1 on my computer screen,  
the returned x-height is almost 2.5 times larger than the returned x-width.  
  
For example, when I run the following code:  
  
===  
clear all; close all;  
w=Screen('OpenWindow',0,[0 0 0]);  
SCREEN(w, 'TextFont','Times Roman');  
SCREEN(w,'TextSize',100);  
Screen(w,'TextBounds','x')  
Screen(w,'DrawText','x',500,500,[255 255 255]);  
screen(w,'Flip');  
pause;   
Screen('CloseAll');  
==  
  
I get [0 0 53 133] as the bounding box of 'x'.  
Am I making any mistakes here?  
My environment is Mac OSX 10.4.11 + Matlab 7.4.0 (R2007a) + Psychtoolbox 3.0.8.  
  
Thanks!  
Tren  
--  
Tren Huang, Ph.D.  
Research Associate  
Vision Sciences Lab  
Department of Psychology  
Boston University
