Change 'font' property on text object?

Discuss Lemur and share techniques.
Post Reply
hakonandersson
Newbie
Posts: 5
Joined: 15 May 2013 12:04

Change 'font' property on text object?

Post by hakonandersson »

Hi guys!

Really simple question here - is it possible to change the font property (font size) via script (setattribute or other?), or is it a static property only being defined on the object's properties tab?

I've tried the usual 'objectname.font = x', but no luck.

Thanks all,
Hakon.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Change 'font' property on text object?

Post by Softcore »

The properties of each object are referenced at the final pages of lemur manual as "attributes" and you can change them by using

setattribute(object, attribute, value)

That said though, font size is not one of them for any of the objects!

if its important to you, you can I guess show and hide alternate text objects with pre-defined font sizes of your choices using show(object, state)
hakonandersson
Newbie
Posts: 5
Joined: 15 May 2013 12:04

Re: Change 'font' property on text object?

Post by hakonandersson »

Softcore,


Great suggestion, many thanks for that - implemented, works well. Cheers.
Post Reply