I'm trying to setup a selector script that occurs onOnline that changes a font based on a hidden text field. I'm using the dim as xpFont, engine.GetFontByName and text.CurrentFont = fontChoice. I cannot get the CurrentFont portion to work correctly, but the script doesn't throw any errors. The font that's shown is just the font selected in Layout, not what the script calls for.
Ultimately, what I want is to be able to enter "1" in a text field and it changes the font.
Any help is greatly appreciated.
Link to a screenshot of the script:
http://imgur.com/a/8KRu8
Running XPression Designer 6.0 build 3318