textSize
Experiments Surveys & forms Unlike bgColor and textColor, a per-trial text size is not reset when a form page starts, so it stays in effect for the whole page.
Sets the base font size for a single trial. A non-empty value is applied as the page’s font size, so it affects trial text, word stimuli, and any other text that does not set its own explicit size.
Syntax
Section titled “Syntax”Put a complete CSS font size, unit included, in the cell, for example 24px.
The value is applied exactly as written, with no parsing; a bare number without
a unit does nothing.
Options
Section titled “Options”| Value | Effect |
|---|---|
| (empty) | Skip; setup default stays |
<n>px, e.g. 24px | Absolute pixel size |
<n>em / <n>% / pt etc. | Any CSS length/percentage works |
Keywords small, large… | Valid CSS keywords work |
Bare number, e.g. 24 | Invalid CSS font-size; silently ignored by the browser, default size stays |
Defaults & missing values
Section titled “Defaults & missing values”- If the column is absent or the cell is left blank, the project default applies (16px unless changed in project settings).
- The project setting is a bare number and gets
pxadded automatically; the column value must carry its own unit. - A per-trial value lasts one trial; the default is restored when the next trial starts.
Works with
Section titled “Works with”- Screen calibration: the default text size scales with calibration, but per-trial
textSizevalues do not; they are applied exactly as written after calibration. - Applied at trial start together with
bgColorandtextColor. - Word stimuli and trial text inherit the size unless something more specific (for example
stimSizehandling) overrides them. - Form trials: unlike
bgColorandtextColor,textSizeis NOT reset when a form starts, so atextSizecell on atype=formrow stays in effect for the whole form (subject to the survey’s own explicit sizes) until the next trial.
Examples
Section titled “Examples”| type | stim1 | stimFormat | textSize |
|---|---|---|---|
| test | apple | word | 32px |
| test | pear | word |
type,stim1,stimFormat,textSize test,apple,word,32px test,pear,word,
Trial 1 shows 32px text; trial 2 reverts to the project default (16px unless set in project settings).
| type | trialText | textSize |
|---|---|---|
| learn | Read this carefully | 1.5em |
type,trialText,textSize learn,Read this carefully,1.5em
Tips & gotchas
Section titled “Tips & gotchas”- Calibration does not rescale per-trial
textSizevalues, so on calibrated projects a per-trial size is physically inconsistent across screens while the default size is not.