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 LongDLL
int DLSetTextFlowLanguage(int InstanceID, int FlowID, const wchar_t* Language);Parameters
| FlowID | TextFlow handle returned by NewTextFlow |
|---|---|
| Language | BCP 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