Scribus Forums

Scribus => Scripts and Plugins => Topic started by: leaf on August 06, 2013, 10:40:29 AM

Title: how create text frame with Font Ascent?
Post by: leaf on August 06, 2013, 10:40:29 AM
How create text frames with set Font Ascent?

I found this script but I don't know how set Font Ascent.

........
            A = scribus.createText(60, 100, 200, 100)
            scribus.setText(add, A)
            scribus.setTextAlignment(scribus.ALIGN_LEFT, A)
            scribus.setFont("Luxi Sans Regular", A)
            scribus.setFontSize(12, A)
            add = ''
            page = page + 1

and second question
What should be the script which can find all text frames on pages and set Font Ascent for them?