Index

Attribute Identifiers

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

Typography

TX_ATTR_FONT_INDEX – Same as pdFontIndex.
TX_ATTR_FONT_UNIQUEID – Same as pdFontUniqueID.
TX_ATTR_FONT_MMCONTRIBUTIONS – Same as pdMMContributions.
TX_ATTR_FONT_WIDTH – Same as pdFontDw.
TX_ATTR_FONT_HEIGHT – Same as pdFontDh.
TX_ATTR_SKEW_HOR – Same as pdSkewHor.
TX_ATTR_SKEW_VER – Same as pdSkewVer.
TX_ATTR_ROTATION – Same as pdRotation.
TX_ATTR_EFFECT – Same as pdUnderline.
TX_ATTR_EFFECT_PARAM0 – Same as pdUnderlineParam0.
TX_ATTR_EFFECT_PARAM1 – Same as pdUnderlineParam1.
TX_ATTR_EFFECT_PARAM2 – Same as pdUnderlineParam2.
TX_ATTR_EFFECT_PARAM3 – Same as pdUnderlineParam3.
TX_ATTR_EFFECT_PARAM4 – Same as pdUnderlineParam4.

Text Body

TX_ATTR_BODY

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.

TX_ATTR_BODY_RGBT – Same as pdRGBT.
TX_ATTR_BODY_EP – Same as pdEP.
TX_ATTR_BODY_EFFECTS – Same as pdEffectsArr.

Text Shadow

TX_ATTR_SHADOW

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.

TX_ATTR_SHADOW_DX – Same as pdShadowDx.
TX_ATTR_SHADOW_DY – Same as pdShadowDy.
TX_ATTR_SHADOW_RGBT – Same as pdRGBT.
TX_ATTR_SHADOW_EP – Same as pdEP.
TX_ATTR_SHADOW_EFFECTS – Same as pdEffectsArr.

Text Outline

TX_ATTR_OUTLINE

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.

TX_ATTR_OUTLINE_TREATMENT – Same as pdLineTreatment.
TX_ATTR_OUTLINE_THICKNESS – Same as pdLineThickness.
TX_ATTR_OUTLINE_SEGMENT – Same as pdLineSegment.
TX_ATTR_OUTLINE_DASHSIZE – Same as pdLineDashSize.
TX_ATTR_OUTLINE_RGBT – Same as pdRGBT.
TX_ATTR_OUTLINE_EP – Same as pdEP.
TX_ATTR_OUTLINE_EFFECTS – Same as pdEffectsArr.

Text Underline

TX_ATTR_UNDERLINE

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.

TX_ATTR_UNDERLINE_THICKNESS – Same as pdLineThickness.
TX_ATTR_UNDERLINE_SEGMENT – Same as pdLineSegment.
TX_ATTR_UNDERLINE_DASHSIZE – Same as pdLineDashSize.
TX_ATTR_UNDERLINE_RGBT – Same as pdRGBT.
TX_ATTR_UNDERLINE_EP – Same as pdEP.
TX_ATTR_UNDERLINE_EFFECTS – Same as pdEffectsArr.

Text Layout

TX_ATTR_TEXTLAYOUT

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.

TX_ATTR_SPACING_LETTER – Same as pdSpacingLetter.
TX_ATTR_SPACING_ROW – Same as pdSpacingRow.
TX_ATTR_SPACING_BASELINE – Same as pdSpacingBaseline.
TX_ATTR_SPACING_FACTOR – Same as pdSpacingFactor.
TX_ATTR_DX – Same as pdDx.
TX_ATTR_DY – Same as pdDy.
TX_ATTR_ALIGN – Same as pdAlign.
TX_ATTR_ALIGNEND – Same as pdAlignEnd.
TX_ATTR_VALIGN_ROW – Same as pdVAlignRow.
TX_ATTR_KERNING – Same as pdKerning.
TX_ATTR_HINTING – Same as pdHinting.
TX_ATTR_POSITIONING – Same as pdPositioning.
TX_ATTR_DIRECTION – Same as pdRelativeDirection.
TX_ATTR_ORIENTATION – Same as pdRelativeOrientation.

Text Ruler

TX_ATTR_TEXTRULER

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.

TX_ATTR_TABSTOP_POSITIONS – Same as pdTabStopPositions.
TX_ATTR_TABSTOP_FLAGS – Same as pdTabStopFlags.
TX_ATTR_INDENT_LEFT – Same as pdIndentLeft.
TX_ATTR_INDENT_RIGHT – Same as pdIndentRight.
TX_ATTR_MARGIN_LEFT – Same as pdMarginLeft.
TX_ATTR_MARGIN_RIGHT – Same as pdMarginRight.

Miscellaneous

TX_ATTR_ENCODING – Same as pdTextEncoding.
TX_ATTR_SHAPING – Same as pdTextShaping.
TX_ATTR_SHAPING_PARAM0 – Same as pdTextShapingParam0.
TX_ATTR_LANGUAGE – Same as pdTextLanguage.
TX_ATTR_BREAK_FLAGS – Same as pdTextBreakFlags.
TX_ATTR_HYPHENATION

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

TX_ATTR_MISC_ATTRIBS – Same as pdTextMiscAttribs.
TX_ATTR_POWERFONT_PTR

This attribute is not currently supported.

TX_ATTR_USER_SPECIFIC_CONTENT – Same as pdUserSpecificContent.

Typographic Frame – Body

TX_ATTR_TYPOFRAME_BODY

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.

TX_ATTR_TYPOFRAME_BODY_RGBT – Same as pdRGBT.
TX_ATTR_TYPOFRAME_BODY_EP – Same as pdEP.
TX_ATTR_TYPOFRAME_BODY_EFFECTS – Same as pdEffectsArr.

Typographic Frame – Shadow

TX_ATTR_TYPOFRAME_SHADOW

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.

TX_ATTR_TYPOFRAME_SHADOW_DX – Same as pdShadowDx.
TX_ATTR_TYPOFRAME_SHADOW_DY – Same as pdShadowDy.
TX_ATTR_TYPOFRAME_SHADOW_RGBT – Same as pdRGBT.
TX_ATTR_TYPOFRAME_SHADOW_EP – Same as pdEP.
TX_ATTR_TYPOFRAME_SHADOW_EFFECTS – Same as pdEffectsArr.

Typographic Frame – Outline

TX_ATTR_TYPOFRAME_OUTLINE

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.

TX_ATTR_TYPOFRAME_OUTLINE_TREATMENT – Same as pdLineTreatment.
TX_ATTR_TYPOFRAME_OUTLINE_THICKNESS – Same as pdLineThickness.
TX_ATTR_TYPOFRAME_OUTLINE_SEGMENT – Same as pdLineSegment.
TX_ATTR_TYPOFRAME_OUTLINE_DASHSIZE – Same as pdLineDashSize.
TX_ATTR_TYPOFRAME_OUTLINE_RGBT – Same as pdRGBT.
TX_ATTR_TYPOFRAME_OUTLINE_EP – Same as pdEP.
TX_ATTR_TYPOFRAME_OUTLINE_EFFECTS – Same as pdEffectsArr.

Row Boundary

TX_ATTR_ROWBOUND_MARGIN_LEFT – Same as pdMarginLeft.
TX_ATTR_ROWBOUND_MARGIN_RIGHT – Same as pdMarginRight.
TX_ATTR_ROWBOUND_MARGIN_TOP – Same as pdMarginTop.
TX_ATTR_ROWBOUND_MARGIN_BOTTOM – Same as pdMarginBottom.
TX_ATTR_ROWBOUND_ROUND – Same as pdRoundX.
TX_ATTR_ROWBOUND_MERGE – Same as pdMerge.

Row Boundary – Body

TX_ATTR_ROWBOUND_BODY

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.

TX_ATTR_ROWBOUND_BODY_RGBT – Same as pdRGBT.
TX_ATTR_ROWBOUND_BODY_EP – Same as pdEP.
TX_ATTR_ROWBOUND_BODY_EFFECTS – Same as pdEffectsArr.

Row Boundary – Shadow

TX_ATTR_ROWBOUND_SHADOW

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.

TX_ATTR_ROWBOUND_SHADOW_DX – Same as pdShadowDx.
TX_ATTR_ROWBOUND_SHADOW_DY – Same as pdShadowDy.
TX_ATTR_ROWBOUND_SHADOW_RGBT – Same as pdRGBT.
TX_ATTR_ROWBOUND_SHADOW_EP – Same as pdEP.
TX_ATTR_ROWBOUND_SHADOW_EFFECTS – Same as pdEffectsArr.

Row Boundary – Outline

TX_ATTR_ROWBOUND_OUTLINE

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.

TX_ATTR_ROWBOUND_OUTLINE_TREATMENT – Same as pdLineTreatment.
TX_ATTR_ROWBOUND_OUTLINE_THICKNESS – Same as pdLineThickness.
TX_ATTR_ROWBOUND_OUTLINE_SEGMENT – Same as pdLineSegment.
TX_ATTR_ROWBOUND_OUTLINE_DASHSIZE – Same as pdLineDashSize.
TX_ATTR_ROWBOUND_OUTLINE_RGBT – Same as pdRGBT.
TX_ATTR_ROWBOUND_OUTLINE_EP – Same as pdEP.
TX_ATTR_ROWBOUND_OUTLINE_EFFECTS – Same as pdEffectsArr.

Text Baseline

TX_ATTR_BASELINE_MARGIN_LEFT – Same as pdMarginLeft.
TX_ATTR_BASELINE_MARGIN_RIGHT – Same as pdMarginRight.

Text Baseline – Line

TX_ATTR_BASELINE_LINE

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.

TX_ATTR_BASELINE_LINE_THICKNESS – Same as pdLineThickness.
TX_ATTR_BASELINE_LINE_SEGMENT – Same as pdLineSegment.
TX_ATTR_BASELINE_LINE_DASHSIZE – Same as pdLineDashSize.
TX_ATTR_BASELINE_LINE_START – Same as pdLineStart.
TX_ATTR_BASELINE_LINE_END – Same as pdLineEnd.
TX_ATTR_BASELINE_LINE_RGBT – Same as pdRGBT.
TX_ATTR_BASELINE_LINE_EP – Same as pdEP.
TX_ATTR_BASELINE_LINE_EFFECTS – Same as pdEffectsArr.

Text Baseline – Shadow

TX_ATTR_BASELINE_SHADOW

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.

TX_ATTR_BASELINE_SHADOW_DX – Same as pdShadowDx.
TX_ATTR_BASELINE_SHADOW_DY – Same as pdShadowDy.
TX_ATTR_BASELINE_SHADOW_RGBT – Same as pdRGBT.
TX_ATTR_BASELINE_SHADOW_EP – Same as pdEP.
TX_ATTR_BASELINE_SHADOW_EFFECTS – Same as pdEffectsArr.
 

Index