[Scribus] scripting problem: changing text font and size
Fri Nov 28 05:53:41 CET 2003
I've bumped into a problem while trying to set font and size of
text via a Python plugin script. It seems that the script fails
if it were to change the last character. I've included a small
example which demonstrates this problem. As written, it changes
the middle of three characters, but if you change 'howMuch'
to 2, which would change the last two characters, it fails.
Any comments, suggestions, or fixes are welcome.
bentson at holmsjoen.com
# Scribus Version 1.1.3cvs
# first entry in ChangeLogCVS dated: 24.11.2003
text = "ABC"
where = 1
howMuch = 1
a = scribus.CreateText(50, 50, 500, 200)
scribus.InsertText(text, 0, a)
scribus.SelectText(where, howMuch, a)
More information about the scribus