rvico TRichView Reference | TRVStyle

TRVStyle.TextEngine

Top  Previous  Next

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 bidirected text is turned off.

Cons:

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

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

unreliable results when the support of bidirected 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 bidirected text is turned off

Cons:

usually slower

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

Default value:

rvteUniscribe


TRichView © trichview.com