IFC 4.3.x development

8.12.3.38 IfcTextStyleTextModel

8.12.3.38.1 Semantic definitions at the entity

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.

NOTE  Corresponding CSS1 definitions are Text properties (word-spacing, letter-spacing, text-decoration, vertical-align, text-transform, text-align, text-indent, line-height).

HISTORY  New entity in IFC2x3.

8.12.3.38.1 Attributes

#Attribute Type Description
IfcPresentationItem
IfcTextStyleTextModel
1TextIndent OPTIONAL IfcSizeSelect The property specifies the indentation that appears before the first formatted line.



> NOTE  It has been introduced for later compliance to full CSS support.
2TextAlign OPTIONAL IfcTextAlignment This property describes how text is aligned horizontally within the element. The actual justification algorithm used is dependent on the rendering algorithm.
3TextDecorationOPTIONAL IfcTextDecoration This property describes decorations that are added to the text of an element.
4LetterSpacing 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).

> NOTE  The following values are allowed, IfcDescriptiveMeasure with value='normal', IfcRatioMeasure, or IfcLengthMeasure, where the length unit is globally defined at IfcUnitAssignment.
5WordSpacing 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).



> NOTE  It has been introduced for later compliance to full CSS support.
6TextTransform OPTIONAL IfcTextTransformationThis 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.



> NOTE  It has been introduced for later compliance to full CSS support.
7LineHeight 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.



> NOTE  The following values are allowed: IfcDescriptiveMeasure with value='normal', or IfcLengthMeasure, with non-negative values, the length unit is globally defined at IfcUnitAssignment, or IfcRatioMeasure.__

8.12.3.38.2 Entity inheritance

dot_inheritance IfcTextStyleTextModel IfcTextStyleTextModel IfcPresentationItem IfcPresentationItem IfcTextStyleTextModel->IfcPresentationItem IfcPresentationItem_children 16 more... IfcPresentationItem_children->IfcPresentationItem

8.12.3.38.3 Formal representations

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;