Skip to main content
Inspiring
January 7, 2017
Question

How to set Brush Script Std font.

  • January 7, 2017
  • 1 reply
  • 2792 views

Hi there,

Need advice here, am trying to set Brush Script Std font to a statictext called 'label', but encounter error.

Please help..

label.graphics.font = ScriptUI.newFont ("Brush Script Std", "", 14);

This topic has been closed for replies.

1 reply

Jongware
Community Expert
Community Expert
January 7, 2017

What error do you get?

Inspiring
January 7, 2017

error code 511

Invalid font style

Community Expert
January 7, 2017

No wonder.

You set the font style to an empty string.

Look up the three arguments of the newFont() method:

CS3 JS: ScriptUI

Did not test this, but how about:

ScriptUI.newFont ("Brush Script Std", "Medium", 14)

Regards,
Uwe