I had tested it from the stand alone client launcher and from the client launched from the designer and by putting the designer into preview mode. None of them were working. We just so happen to have to reboot the dev system today and it now works in all 3 cases.
And just like that the problem is back. Now it will only work when i put the designer into Preview mode. Launching the client in any way causes it not to work.
This is now on the label component
if event.propertyName == 'text':
print event.source.font
print theme.label.pageTitle()
event.source.font = theme.label.pageTitle()
print event.source.font
Here is the script “theme.label.pageTitle()”
from java.awt import Font
def pageTitle():
return Font('Arial', Font.BOLD, 50)
Here is the console output
java.awt.Font[family=Arial,name=Arial,style=bold,size=23]
java.awt.Font[family=Arial,name=Arial,style=bold,size=50]
java.awt.Font[family=Arial,name=Arial,style=bold,size=50]
This is the complete console when launched from Client Launcher
19:41:01.248 [Thread-0] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Updated login state. Logged in? true, Username: admin, Roles: [Administrator], Security Zones: null
Creating frame. extendedState=6, bounds=java.awt.Rectangle[x=0,y=0,width=1918,height=938]
19:41:01.355 [Thread-4] INFO tags.manager.gwinterface - Tag poll rate changed to 250 ms
19:41:01.376 [ClientExecEngine-2] INFO tags.subscriptions - Changing connected quality to 'Good'
19:41:03.159 [Thread-4] INFO com.inductiveautomation.reporting.client.ReportingClientHook - Starting up Reporting Module. Mode: Trial
19:41:03.366 [Thread-4] ERROR Scripting.ScriptManager.OMITTED- Warning: collision at system.util.initialize
19:41:03.753 [AWT-EventQueue-0] INFO vision.App - Starting Up...
java.awt.Font[family=Arial,name=Arial,style=bold,size=23]
java.awt.Font[family=Arial,name=Arial,style=bold,size=50]
java.awt.Font[family=Arial,name=Arial,style=bold,size=50]