The height of the font.
<button> <clock> <defaults> <instruct> <likert> <openended> <sliderTrial> <survey> <caption> <checkboxes> <dropdown> <image> <listbox> <radioButtons> <slider> <textbox> <surveyPage> <text>
object.name.fontHeight
Read/Write
extent
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.
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>