[scribus] Set formatted text using Scripter API

Gregory Pittman gpittman at iglou.com
Tue Nov 4 12:19:49 UTC 2014


On 11/04/2014 03:52 AM, Andreas Winkler wrote:

Hi,

I'm new to scripting in Scribus.
Is there an easy way to apply text with individually formatted passages
to a text frame using the Scripter API? Something like
setText("This is a <b>bold<\b> test")
doesn't seem to work.

Best regards

Andreas

Short answer: no

I think your best method right now is to do this on the main canvas in
Edit Contents mode, highlighting and applying styles as you go.

It's possible to set styles in Scripter, but laborious and actually a
bit tricky.

Greg



More information about the scribus mailing list