[visionegg] Re: Text() and fontsize
- From: Douglas Taylor <dtaylor@xxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Fri, 03 Feb 2006 14:50:58 -0800
Hi Simeon,
Thanks font_size worked. Also text.font.set_italic(True)
worked for me but not on the 1st trial. It didn't
go italic until I changed the text via
trial_string = "%s %d"%("Trial: ",trial_num)
text.parameters.text=trial_string
I looked at the VBO info a little bit and I may hold off
on that a bit. I just took 1000 trials of motion data
on my old 400MHz G4(geForce4MX) using 512 dots and it didn't miss
any frames. Using the draw_in_c method I can go up
1500 dots on this old machine and 3000 on a 1.2 GHz G4.
Thanks Simeon and thanks Andrew! Best,
Doug
Simeon Fitch wrote:
When I use the "font_size" property of the Text class, I get a
different font size (but can't get italics to work). E.g.:
text = VisionEgg.Text.Text(
position=(margin[0], y-50),
font_size=20,
text="Here is some text")
text.font.set_italic(True) # This doesn't work :-(
stimuli.append(text)
Is this the type of text you are talking about?
On 2/3/06, Douglas Taylor <dtaylor@xxxxxxx <mailto:dtaylor@xxxxxxx>>
wrote:
Hi All,
Is there a way to programatically change the font size.
I tried ignore_size_parameter = False and changed the size
parameter but this did not give good results. I ended up
changing fontsize in the Text.py file but then I would like to
change it back without editing the file again. Thanks much,
Doug
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] Text() and fontsize
- From: Douglas Taylor
- [visionegg] Re: Text() and fontsize
- From: Simeon Fitch
Other related posts:
- » [visionegg] Text() and fontsize
- » [visionegg] Re: Text() and fontsize
- » [visionegg] Re: Text() and fontsize
Simeon Fitch wrote:
text = VisionEgg.Text.Text(
position=(margin[0], y-50),
font_size=20,
text="Here is some text")
text.font.set_italic(True) # This doesn't work :-(
stimuli.append(text)Is this the type of text you are talking about?
On 2/3/06, Douglas Taylor <dtaylor@xxxxxxx <mailto:dtaylor@xxxxxxx>> wrote:
Hi All,
Is there a way to programatically change the font size.
I tried ignore_size_parameter = False and changed the size
parameter but this did not give good results. I ended up
changing fontsize in the Text.py file but then I would like to
change it back without editing the file again. Thanks much,Doug
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] Text() and fontsize
- From: Douglas Taylor
- [visionegg] Re: Text() and fontsize
- From: Simeon Fitch