[scribus] createCharStyle: and apply

Gregory Pittman gregp_ky at yahoo.com
Mon Sep 5 15:38:13 UTC 2011


On 09/05/2011 10:47 AM, José Antonio Rocha wrote:
> 2011/9/4 Cédric Gémy<radar.map35 at free.fr>
>
>>>> createCharStyle(name="Cover_Default", font= "LTC Italian Old
>>>> Style", features = 'smallcaps')
>>>> createParagraphStyle("Title",fontsize=36,
>> linespacingmode=1,alignment=1,
>>>> charstyle="Cover_Default")
> This is wrong. The correct way:
>
> createCharStyle(name="Title 1", font= "Liberation Serif
> Regular",fontsize=36, features = 'smallcaps')
>
> createCharStyle(name="Title 2", font= "Liberation Serif
> Regular",fontsize=24, features = 'smallcaps')
>
> createParagraphStyle("Title 1", linespacingmode=1,alignment=1,
> charstyle="Title 1")
>
> createParagraphStyle("Title 2", linespacingmode=1,alignment=1,
> charstyle="Title 2")
>
Nonetheless, Cédric is right, even though you can create a style you 
cannot apply it with a script.

Also, I have tried elements like 'linespacingmode=1' and I get a 
traceback telling me that the input cannot be an expression. Simply 
entering '1' (without the quotes) does work.

Greg



More information about the scribus mailing list