User`s guide

Create and Format Text
13-43
fontFamily = FontFamily('Arial');
fontFamily.BackupFamilyNames = {'Helvetica'};
t.Style = {fontFamily};
t.Bold = true;
close(d);
rptview('test','html');
Use these format objects and format properties to format text.
Formatting Format Object Format Property
Font FontFamily FontFamilyName
Backup font (HTML only) FontFamily n/a
Complex script font (for
example, Arabic)
FontFamily n/a
East Asian font FontFamily n/a
Font size FontSize FontSize
Foreground color Color Color
Background color BackgroundColor BackgroundColor
Bold Bold Bold
Italic Italic Italic
Subscript or superscript VerticalAlign n/a
Strike through Strike Strike
Underline type (single,
double, etc.)
Underline Underline
Underline color Underline n/a
Preserve white space WhiteSpace WhiteSpace
Format Text Using Microsoft Word Style Sheets
You can format a paragraph using a style defined in the Word template used to generate
the report.
To define a text style in a Word template, start by using these steps.