2.293.15 Style.FontFamily

The Style.FontFamily element specifies the name of the font family for text within a report item. This element is optional.

If the Style.FontFamily element is present, its value MUST be a String ([XMLSCHEMA2/2] section 3.2.1) or an expression that evaluates to a String. If this element is not present, its value is interpreted as the value defined in Report.DefaultFontFamily. If the value of this element is not a recognized font family, its value is interpreted as the value defined in Report.DefaultFontFamily.

In RDL 2012/01, Style.FontFamily is of type StringWithValueTypeAttribute. If the ValueType attribute is set to ThemeReference, the value MUST be the name of a theme font. If ValueType is not present or is set to "Constant", the value is interpreted as the name of a font family.

If the grandparent element of the Style.FontFamily element is not TextRun, Chart, Textbox, Subtotal, ChartTitle, ChartLegend, ChartLegendTitle, ChartAxis, Axis, ChartAxisTitle, Title, ChartDataLabel, ChartStripLine, ScaleLabels, CustomLabel, or PinLabel, the Style.FontFamily element is ignored.

Following is the parent element of the Style.FontFamily element.

Parent elements

Style

The following is the XML Schema definition of the Style.FontFamily element.

Note  The following XSD represents RDL macro-versioned schemas only. Possible additions, identified earlier in this section, to base schema RDL 2010/01 from micro-versioned schemas RDL 2011/01, RDL 2012/01, and RDL 2013/01 are provided in sections 5.5, 5.6, and 5.7, respectively. For more information about macro- and micro-versioned schemas, see section 2.1.

 <xsd:element name="FontFamily" type="xsd:string" minOccurs="0" />