D-Type Unicode Text Module supports a rich set of attribute identifiers. They are organized into one of the following groups:
Core Attributes
Extra Attributes
Setting this attribute to 0 when formatting text removes all of its text body attributes. This can be used to create text without a body. Setting this attribute to 1 enables text body attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_BODY will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its text shadow attributes. This can be used to create text without a shadow. Setting this attribute to 1 enables text shadow attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_SHADOW will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its text outline attributes. This can be used to create text without an outline. Setting this attribute to 1 enables text outline attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_OUTLINE will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its text underline/strike-through attributes listed below. Setting this attribute to 1 enables the text underline/strike-through attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_UNDERLINE will be automatically set to 1. Therefore, setting TX_ATTR_UNDERLINE manually is unnecessary.
However, when setting the text underline/strike-through attributes listed below, please remember to also set the TX_ATTR_EFFECT to specify the type of underline/strike-through effect. Without this, the following attributes will not have any effect.
Setting this attribute to 0 when formatting text removes all of its text layout attributes. Setting this attribute to 1 enables text layout attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_TEXTLAYOUT will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its text ruler attributes. Setting this attribute to 1 enables text ruler attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_TEXTRULER will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Index of the hyphenation dictionary. A positive index enables automatic hyphenation. The index 0 disables the hyphenation.
This attribute makes it possible to apply language specific hyphenation rules to arbitrary text selections. This typically results in improved text wrapping behavior, especially when text is in laid out in narrow columns. This is useful in high-end text layout applications that require more professional justification of text lines.
Hyphenation dictionaries are set up via dtype.inf. Each hyphenation dictionary is a file (steam) that contains specific hyphenation instructions and hyphenation patterns for the supported target language. The index of the hyphenation dictionary simply references one of these files (streams). For example, index 1 references the first hyphenation dictionary set up via dtype.inf (which is the English hyphenation dictionary), index 2 references the second one (which is the French hyphenation dictionary) and so on. Consequently, a positive index enables automatic hyphenation while the index 0 disables the hyphenation.
Sample values:
0 = Disable hyphenation
1 = Enable automatic hyphenation; use the English hyphenation dictionary to hyphenate text
2 = Enable automatic hyphenation; use the French hyphenation dictionary to hyphenate text
This attribute is not currently supported.
Setting this attribute to 0 when formatting text removes all of its typographic frame body attributes. This can be used to create text without a typographic frame. Setting this attribute to 1 enables typographic frame body attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_TYPOFRAME_BODY will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its typographic frame shadow attributes. This can be used to create text without a typographic frame shadow. Setting this attribute to 1 enables typographic frame shadow attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_TYPOFRAME_SHADOW will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its typographic frame outline attributes. This can be used to create text without a typographic frame outline. Setting this attribute to 1 enables typographic frame outline attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_TYPOFRAME_OUTLINE will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its row boundary body attributes. This can be used to create text without a row boundary body. Setting this attribute to 1 enables row boundary body attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_ROWBOUND_BODY will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its row boundary shadow attributes. This can be used to create text without a row boundary shadow. Setting this attribute to 1 enables row boundary shadow attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_ROWBOUND_SHADOW will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its row boundary outline attributes. This can be used to create text without a row boundary outline. Setting this attribute to 1 enables row boundary outline attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_ROWBOUND_OUTLINE will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.
Setting this attribute to 0 when formatting text removes all of its baseline line attributes listed below. Setting this attribute to 1 enables the baseline line attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_BASELINE_LINE will be automatically set to 1. Therefore, setting TX_ATTR_BASELINE_LINE manually is unnecessary.
Setting this attribute to 0 when formatting text removes all of its baseline shadow attributes. This can be used to create text without a baseline shadow. Setting this attribute to 1 enables baseline shadow attributes listed below. However, whenever one of the attributes listed below is used to format text, TX_ATTR_BASELINE_SHADOW will be automatically set to 1. Therefore, setting this attribute to 1 explicitly is unnecessary.