Default font used by visual.TextStim

Hello everyone,

My question is a very simple one: does anybody know what is the default font type used by PP, or how it gets determined if the argument is left unspecified? The documentation of visual.TextStim does not mention this, neither did I find a related post. Thanks in advance!

I don’t know the answer, but you can find out what the font is pretty easily, though you probably know this:

# imagine our experiment has
# a TextStim named "stim1"
print(stim1.font)

You can also set the font:

stim1.font = "Font Name"

For me, running this on Ubuntu 16.04 with PsychoPy 1.9 I get stim1.font = '' … so basically '' as the output. I’d be interested in finding the default font as well.

I’ve been out of the loop for a while, but at least in the past, PsychoPy relied on other libraries to actually render text, and the default text will vary by system.

I’m sure you could find a few leads here in this other question.

1 Like

On my Mac TextStim defaults to Helvetica, which is also Mac’s default font. Perhaps the computer’s default font assumes TextStim’s default as well?

1 Like