Skip to content

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.

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.

ValueEffect
(empty)Skip; setup default stays
<n>px, e.g. 24pxAbsolute pixel size
<n>em / <n>% / pt etc.Any CSS length/percentage works
Keywords small, largeValid CSS keywords work
Bare number, e.g. 24Invalid CSS font-size; silently ignored by the browser, default size stays
  • 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 px added 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.
  • Screen calibration: the default text size scales with calibration, but per-trial textSize values do not; they are applied exactly as written after calibration.
  • Applied at trial start together with bgColor and textColor.
  • Word stimuli and trial text inherit the size unless something more specific (for example stimSize handling) overrides them.
  • Form trials: unlike bgColor and textColor, textSize is NOT reset when a form starts, so a textSize cell on a type=form row stays in effect for the whole form (subject to the survey’s own explicit sizes) until the next trial.
typestim1stimFormattextSize
testappleword32px
testpearword

Trial 1 shows 32px text; trial 2 reverts to the project default (16px unless set in project settings).

typetrialTexttextSize
learnRead this carefully1.5em
  • Calibration does not rescale per-trial textSize values, so on calibrated projects a per-trial size is physically inconsistent across screens while the default size is not.