THotPDF.ConfigureParagraphTextLayout Method

Configures language-specific hyphenation and the composition strategy for an existing paragraph

Declaration

procedure ConfigureParagraphTextLayout(Index: Integer;
  const Language: AnsiString; Hyphenator: THPDFHyphenationProvider;
  CompositionMode: THPDFParagraphCompositionMode = pcmGreedy);

Unit

HPDFDoc

Parameters

NamePurpose
IndexOne-based paragraph identifier returned by CreateParagraph
LanguageBCP 47-style language tag used to select caller-provided hyphenation data and included in shaped-run cache keys
HyphenatorCaller-owned provider queried for discretionary word-break positions, or nil to disable dictionary hyphenation
CompositionModepcmGreedy for minimum latency or pcmOptimal for bounded global line scoring

Usage notes

Related APIs