IfcTextStyleForDefinedFont

BACnet MVD

#### IfcTextStyleForDefinedFont

Natural language names

| Textstil für definierten Schriftensatz
| Text Style For Defined Font

##### Semantic definitions at the entity

Entity definition

The IfcTextStyleForDefinedFont combines the text font color with an optional background color, that fills the text box, defined by the planar extent given to the text literal.

> Definition according to W3C for Cascading Style Sheets: These properties describe the color (often called foreground color) and background of an element (i.e. the surface onto which the content is rendered). One can set a background color.

> NOTE Corresponding CSS definitions are Color and background properties (color, background-color).

> HISTORY New entity in IFC2x3.

> IFC2x3 CHANGE The IfcTextStyleForDefinedFont has been added and replaces IfcColour at the IfcCharacterStyleSelect.

Attribute definitions

# | Attribute | Type | Cardinality | Description | B
--- | --- | --- | --- | --- | ---
1 | Colour | IfcColour |  | This property describes the text color of an element (often referred to as the foreground color). |  | X
2 | BackgroundColour | IfcColour | ? | This property sets the background color of an element. |  | X

##### Inherited definitions from supertypes

Entity inheritance
Attribute inheritance

# | Attribute | Type | Cardinality | Description | B
--- | --- | --- | --- | --- | ---
IfcPresentationItem
IfcTextStyleForDefinedFont
1 | Colour | IfcColour |  | This property describes the text color of an element (often referred to as the foreground color). |  | X
2 | BackgroundColour | IfcColour | ? | This property sets the background color of an element. |  | X

##### Formal representations

XML Specification
`<xs:element name="IfcTextStyleForDefinedFont" type="ifc:IfcTextStyleForDefinedFont" substitutionGroup="ifc:IfcPresentationItem" nillable="true"/>
<xs:complexType name="IfcTextStyleForDefinedFont">
<xs:complexContent>
<xs:extension base="ifc:IfcPresentationItem">
<xs:sequence>
<xs:element name="Colour">
<xs:complexType>
<xs:group ref="ifc:IfcColour"/>
</xs:complexType>
</xs:element>
<xs:element name="BackgroundColour" nillable="true" minOccurs="0">
<xs:complexType>
<xs:group ref="ifc:IfcColour"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
`
EXPRESS Specification
`ENTITY IfcTextStyleForDefinedFont
SUBTYPE OF (IfcPresentationItem);
Colour : IfcColour;
BackgroundColour : OPTIONAL IfcColour;
END_ENTITY;

EXPRESS-G diagram

`

References: IfcTextStyle

Link to this page