Skip to main content
Inspiring
January 7, 2017
質問

How to set Brush Script Std font.

  • January 7, 2017
  • 返信数 1.
  • 2792 ビュー

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);

このトピックへの返信は締め切られました。

返信数 1

Jongware
Community Expert
Community Expert
January 7, 2017

What error do you get?

eboda_snaf作成者
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