[visionegg] Re: Text() and fontsize

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


Other related posts: