up Inquisit Language Reference

fontHeight property

The height of the font.

Member of

<button> <clock> <defaults> <instruct> <likert> <openended> <sliderTrial> <survey> <caption> <checkboxes> <dropdown> <image> <listbox> <radioButtons> <slider> <textbox> <surveyPage> <text>

Syntax

object.name.fontHeight

Read/Write

Type

extent

Remarks

The height can be specified in percentages, pixels, or points. This property can be used do dynamically change the fontsize of a text stimulus during runtime if needed.

Examples

The following displays the value of fontHeight in a text stimulus:

<text myText>
/ items= ("fontHeight = <% text.foo.fontHeight %>")
</text>

The following displays the value of fontHeight in an instruction page:

<page myPage>
fontHeight = <% defaults.fontHeight %>
</page>

The following code demonstrates how to adjust the size of a text stimulus at the start and end of a trial.

<trial warning>
/ onTrialBegin = {
  text.alert.fontHeight = 10%;
}
/ stimulusFrames = [1 = alert]
/ trialDuration = 1000
/ onTrialEnd = {
  text.alert.fontHeight = 5%;
}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.