SetTextFlowLanguage

Text, layout

Opis

Nastaví primárny jazyk používaný, keď si TextFlow vyberá discretionary zlomy slov

Syntax

Delphi

Function TPDFlib.SetTextFlowLanguage(FlowID: Integer; Const Language: WideString): Integer;

ActiveX

Function PDFlib::SetTextFlowLanguage(FlowID As Long, Language As String) As Long

DLL

int DLSetTextFlowLanguage(int InstanceID, int FlowID, const wchar_t* Language);

Parameters

FlowIDTextFlow handle returned by NewTextFlow
LanguageBCP 47 language tag or an empty string to clear the language

Return values

Vráti 1, keď je syntax flow a jazyka platná, inak 0

Poznámky

Primárny tag sa normalizuje na malé písmená a uchováva bez region alebo script subtagov

Automatic hyphenation supports en, de, nl, fr, es, it, pt, ru, and trA newly created TextFlow inherits the document Catalog

/Lang value and enables automatic hyphenation when its primary language is supportedSetting an unsupported but syntactically valid primary tag disables automatic hyphenation while discretionary soft hyphens remain available

See also

GetTextFlowLanguage, SetTextFlowHyphenation, NewTextFlow