TRVStyle.TextEngine [VCL and LCL]

<< Click to display table of contents >>

TRVStyle.TextEngine [VCL and LCL]

Specifies which set of functions are used for text measuring and drawing.

type

  TRVTextEngine = (rvteWindows, rvteUniscribe);

property TextEngine: TRVTextEngine;

(introduced in v16)

Value

Meaning

Comments

rvteWindows

Windows API

Pros:

faster, especially if the support of bidirectional text is turned off.

Cons:

completely incorrect results for right-to-left text (Arabic and Hebrew), if the support of bidirectional text is turned off;

results may be not completely correct if text includes some "exotic" characters;

unreliable results when the support of bidirectional text is turned on (may be correct for one font, but incorrect for another font).

rvteUniscribe

Uniscribe

Pros:

reliable processing of complex scripts and "exotic" characters;

acceptable results for right-to-left text even if support of bidirectional text is turned off

Cons:

usually slower

Reformat documents in linked TRichView controls after changing value of this property.

If MainRVStyle is assigned, this property provides access to the corresponding property of MainRVStyle.

Note: this property is not available in FireMonkey version.

Default value:

rvteUniscribe