Jump to content

Set TextStyle (from Resource)


Recommended Posts

Hello,

 

can some one tell me how to assign a text style from the resource manager to an text object.

 

SetTextStyleRefN() needs a style reference id which I have no clue how to get.

 

Edit:

 

ok sry, I passed the wrong params.

In case some one needs to know how it works:

 

h = vs.FSActLayer( )
style_id = vs.Name2Index ('Verdana Test')    
vs.SetTextStyleRef (h, style_id)

 

 

Edited by Patrick Winkler
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...