responsefontstyle attribute

The responsefontstyle attribute specifies the font in which survey responses are presented.

Applies to

<checkboxes> <dropdown> <listbox> <radiobuttons> <slider> <survey> <surveypage> <textbox>

Syntax

/ responsefontstyle = ("face name", height, bold, italic, underline, strikeout, quality)

Parameters

face name A string in quotes indicating the name of the font.
height (Optional) An integer that specifies the height of the font in points (default), pixels, percent, centimeters, millimeters, or inches.
bold (Optional) A value of true or false indicating whether the font should be bold.
italic (Optional) A value of true or false indicating whether the font should be italic.
underline (Optional) A value of true or false indicating whether the font should underlined.
strikeout (Optional) A value of true or false indicating whether the font should appear with a strikeout line.
quality (Optional) An integer ranging from 1 to 5 indicating the font quality. 5 is the best quality (ClearType).

Remarks

The font can be set for the entire survey, or for a particular page, with the page setting overriding the survey settings. Individual items may have additional font settings that will override this font style.

Inquisit provides an easy to use font picker dialog to set this attribute. To use the font picker, 1) move the cursor to where you want to insert the the font attribute, 2) open the Tools menu, and 3) select "Font Wizard". Once you have selected the desired font settings in the Font Wizard dialog, select OK and the font attribute and appropriate settings will automatically be inserted in your script at the cursor location.

Examples

The following sets the default font for the edit control of a textbox survey item to text in 2 inch Courier New font:

<textbox q1>
/ responsefontstyle = ("Courier New", 2in, false, false, false)
/ caption = ("Enter the first three words that pop into your head.")
</textbox>

The following sets the font for the options of a checkbox survey item to an 8 point Courier New font:

<checkboxes q1>
/ responsefontstyle = ("Courier New", 8pt, false, false, true)
/ caption = ("Check all that apply.")
/ options=("I am a US citizen.", "I have never been convicted of a felony")
</checkboxes>

The following sets the default survey response font to 14pt Arial bold:

<survey somesurvey>
/ responsefontstyle = ("Arial", 14pt, true)
/ pages = (1=p1; 2=p2; 3=p3)
</survey>

The following sets the default survey response font to Arial bold and sets the height to 5% of the screen height:

<survey somesurvey>
/ responsefontstyle = ("Arial", 10%, true)
/ pages = (1=p1; 2=p2; 3=p3)
</survey>

The following sets the default response font for a particular survey page to italic Tahoma font, 25 pixels high:

<surveypage page1>
/ responsefontstyle = ("Tahoma", 25px, false, true)
/ questions = (1=q1; 2=q2; 3=q3)
</surveypage>


Send comments on this topic.
Copyright Millisecond Software, LLC. All rights reserved.