Hi everyone and excuse my bad English.
I'm trying to use the SetFontFeatures function (Scribus 1.5.5svn) but without results.
The only documentation I found is that of the wiki (
https://wiki.scribus.net/canvas/Automatic_Scripter_Commands_list). I can't understand the correct syntax. I want to change the text track from my script.
I tried different syntaxes:
- setFontFeatures ("tracking = 5", myText)
- setFontFeatures (tracking = "5", myText)
- setFontFeatures ("tracking 5", myText)
the only syntax that returns no error is
- setFontFeatures ("tracking", myText)
but nothing changes, of course. :-D
Please, can someone write me an example of the function?
FUNCTION:
setFontFeatures
SYNTAX:
setFontFeatures ("fontfeature", ["name"])
Sets the font features of the text frame "name" to "fontfeature". If there is some text selected only the selected text is changed. If "name" is not given the currently selected item is used.
May throw ValueError if the font cannot be found.