The itemfontstyle attribute specifies the font in which survey questions are presented.
<survey> <surveypage>
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, or percent. | ||||||||||||||||||||||||||||||||||||||||
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). | ||||||||||||||||||||||||||||||||||||||||
character set |
(Optional) An integer indicating the character set code. The character set can be any of the following:
|
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.
The following sets the default survey font to 14pt Arial bold:
<survey somesurvey>
/ itemfontstyle = ("Arial", 14pt, true)
/ items = ("yada yada yada")
</survey>
The following sets the default survey font to Arial bold and sets the height to 5% of the screen height:
<survey somesurvey>
/ itemfontstyle = ("Arial", 10%, true)
/ items = ("yada yada yada")
</survey>
The following sets the default font for a particular survey page to italic Tahoma font, 25 pixels high:
<surveypage page1>
/ itemfontstyle = ("Tahoma", 25px, false, true)
/ items = ("yada yada yada")
</surveypage>
The following sets the default font for a particular survey page to underlined text in 2 inch Courier New font:
<surveypage page2>
/ itemfontstyle = ("Courier New", 2in, false, false, true)
/ items = ("yada yada yada")
</surveypage>