IfcTextStyle

BACnet MVD

#### IfcTextStyle

Natural language names

| Textstil
| Text Style
| Style de texte

Change log

Item | SPF | XML | Change | Description
--- | --- | --- | --- | ---
IFC2x3 to IFC4
IfcTextStyle |  |  |  |
TextCharacterAppearance | X | X | MODIFIED | Type changed from IfcCharacterStyleSelect to IfcTextStyleForDefinedFont.
TextStyle | X | X | MODIFIED | Type changed from IfcTextStyleSelect to IfcTextStyleTextModel.
ModelOrDraughting |  |  | ADDED |
IFC4 Addendum 1
IfcTextStyle |  |  |  |
ModelOrDraughting |  |  | MODIFIED | Type changed from BOOLEAN to IfcBoolean.

##### Semantic definitions at the entity

Entity definition

The IfcTextStyle is a presentation style for annotations that place a text in model space. The IfcTextStyle provides the text style for presentation information assigned to IfcTextLiteral's. The style is defined by color, text font characteristics, and text box characteristics.

An IfcTextStyle is instantiated with:

- TextCharacterAppearance: IfcTextStyleForDefinedFont
- TextStyle: IfcTextStyleTextModel
- TextFontStyle: IfcTextStyleFontModel

An IfcTextStyle is assigned to IfcTextLiteral through the IfcStyledItem entity.

> NOTE Entity adopted from font properties (font-family, font-style, font-variant, font-weight, font-size), Color and background properties (color, background-color) and text properties (word-spacing, letter-spacing, text-decoration, text-transform, text-align, text-indent, line-height) defined in CSS-1.

> HISTORY New entity in IFC2x2.

> IFC2x3 CHANGE The IfcTextStyle has been changed by adding TextFontStyle and different data types for TextStyle and IfcTextCharacterAppearance.

> IFC4 CHANGE The IfcTextStyle has been simplified by removing old vector based text style definitions.

Attribute definitions

# | Attribute | Type | Cardinality | Description | B
--- | --- | --- | --- | --- | ---

2

TextCharacterAppearance

IfcTextStyleForDefinedFont

?

A character style to be used for presented text.

> IFC4 CHANGE Superfluous select type IfcCharacterStyleSelect has been removed.

X

3

TextStyle

IfcTextStyleTextModel

?

The style applied to the text block for its visual appearance.

> IFC2x3 CHANGE The attribute TextBlockStyle has been changed from SET[1:?] to a non-aggregated optional and renamed into TextStyles.

> IFC4 CHANGE The IfcTextStyleWithBoxCharacteristics and the now superfluous select type IfcTextStyleSelect have been removed.

X

4

TextFontStyle

IfcTextFontSelect

The style applied to the text font for its visual appearance. It defines the font family, font style, weight and size.

> IFC2x2 Add2 CHANGE The attribute TextFontStyle is a new attribute attached to IfcTextStyle.

X

5

ModelOrDraughting

IfcBoolean

?

Indication whether the length measures provided for the presentation style are model based, or draughting based.

> IFC4 CHANGE New attribute.

X

##### Inherited definitions from supertypes

Entity inheritance
Attribute inheritance

# | Attribute | Type | Cardinality | Description | B
--- | --- | --- | --- | --- | ---
IfcPresentationStyle
1 | Name | IfcLabel | ? | Name of the presentation style. | X | X
IfcTextStyle

2

TextCharacterAppearance

IfcTextStyleForDefinedFont

?

A character style to be used for presented text.

> IFC4 CHANGE Superfluous select type IfcCharacterStyleSelect has been removed.

X

3

TextStyle

IfcTextStyleTextModel

?

The style applied to the text block for its visual appearance.

> IFC2x3 CHANGE The attribute TextBlockStyle has been changed from SET[1:?] to a non-aggregated optional and renamed into TextStyles.

> IFC4 CHANGE The IfcTextStyleWithBoxCharacteristics and the now superfluous select type IfcTextStyleSelect have been removed.

X

4

TextFontStyle

IfcTextFontSelect

The style applied to the text font for its visual appearance. It defines the font family, font style, weight and size.

> IFC2x2 Add2 CHANGE The attribute TextFontStyle is a new attribute attached to IfcTextStyle.

X

5

ModelOrDraughting

IfcBoolean

?

Indication whether the length measures provided for the presentation style are model based, or draughting based.

> IFC4 CHANGE New attribute.

X

##### Formal representations

XML Specification
`<xs:element name="IfcTextStyle" type="ifc:IfcTextStyle" substitutionGroup="ifc:IfcPresentationStyle" nillable="true"/>
<xs:complexType name="IfcTextStyle">
<xs:complexContent>
<xs:extension base="ifc:IfcPresentationStyle">
<xs:sequence>
<xs:element name="TextCharacterAppearance" type="ifc:IfcTextStyleForDefinedFont" nillable="true" minOccurs="0"/>
<xs:element name="TextStyle" type="ifc:IfcTextStyleTextModel" nillable="true" minOccurs="0"/>
<xs:element name="TextFontStyle">
<xs:complexType>
<xs:group ref="ifc:IfcTextFontSelect"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ModelOrDraughting" type="ifc:IfcBoolean" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
`
EXPRESS Specification
`ENTITY IfcTextStyle
SUBTYPE OF (IfcPresentationStyle);
TextCharacterAppearance : OPTIONAL IfcTextStyleForDefinedFont;
TextStyle : OPTIONAL IfcTextStyleTextModel;
TextFontStyle : IfcTextFontSelect;
ModelOrDraughting : OPTIONAL IfcBoolean;
END_ENTITY;

EXPRESS-G diagram

`

References: IfcPresentationStyleSelect

Link to this page