IFC 4.3.2.20240809 (IFC4X3_ADD2) under development

8.12.3.39 IfcTextStyleTextModel

RV ⓘ
AbV ⓘ

8.12.3.39.1 Semantic definition

The IfcTextStyleTextModel combines all text style properties, that affect the presentation of a text literal within a given extent. It includes the spacing between characters and words, the horizontal and vertical alignment of the text within the planar box of the extent, decorations (like underline), transformations of the literal (like uppercase), and the height of each text line within a multi-line text block.

Definition according to W3C for Cascading Style Sheets: The properties defined in the text model affect the visual presentation of characters, spaces, words, and paragraphs.

8.12.3.39.2 Entity inheritance

8.12.3.39.3 Attributes

# Attribute Type Description
IfcTextStyleTextModel (7)
1 TextIndent OPTIONAL IfcSizeSelect

The property specifies the indentation that appears before the first formatted line.

2 TextAlign OPTIONAL IfcTextAlignment

This property describes how text is aligned horizontally within the element. The actual justification algorithm used is dependent on the rendering algorithm.

3 TextDecoration OPTIONAL IfcTextDecoration

This property describes decorations that are added to the text of an element.

4 LetterSpacing OPTIONAL IfcSizeSelect

The length unit indicates an addition to the default space between characters. Values can be negative, but there may be implementation-specific limits. The importing application is free to select the exact spacing algorithm. The letter spacing may also be influenced by justification (which is a value of the TextAlign attribute).

5 WordSpacing OPTIONAL IfcSizeSelect

The length unit indicates an addition to the default space between words. Values can be negative, but there may be implementation-specific limits. The importing application is free to select the exact spacing algorithm. The word spacing may also be influenced by justification (which is a value of the 'text-align' property).

6 TextTransform OPTIONAL IfcTextTransformation

This property describes how text characters may transform to upper case, lower case, or capitalized case, independent of the character case used in the text literal.

7 LineHeight OPTIONAL IfcSizeSelect

The property sets the distance between two adjacent lines' baselines. When a ratio value is specified, the line height is given by the font size of the current element multiplied with the numerical value. A value of 'normal' sets the line height to a reasonable value for the element's font. It is suggested that importing applications set the 'normal' value to be a ratio number in the range of 1.0 to 1.2.

Table 8.12.3.39.A

8.12.3.39.4 Formal representation

ENTITY IfcTextStyleTextModel
 SUBTYPE OF (IfcPresentationItem);
	TextIndent : OPTIONAL IfcSizeSelect;
	TextAlign : OPTIONAL IfcTextAlignment;
	TextDecoration : OPTIONAL IfcTextDecoration;
	LetterSpacing : OPTIONAL IfcSizeSelect;
	WordSpacing : OPTIONAL IfcSizeSelect;
	TextTransform : OPTIONAL IfcTextTransformation;
	LineHeight : OPTIONAL IfcSizeSelect;
END_ENTITY;

8.12.3.39.5 References

Edit on Github


Is this page difficult to understand? Let us know!