Let's say I wrote a beautiful script, that uses some fonts - standard fonts you'd find on almost any computer, but not the JMP default fonts.
I distributed this script to my users, and I started getting feedback on errors messages about missing fonts.
It appears that there are computers in the organization that have a very minimal number of fonts installed.
So I wrapped each Font message in Try() statement, like so:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = dt << Bivariate( Y( :height ), X( :weight ) );
rbiv = biv << Report;
Try((rbiv << XPath( "//AxisBox/MouseBox/DropBox/TextEditBox" )) << Set Font( "Agency FF", 13 ), Write("No Font"));
The problem is it still gives me an error pop-up.
How do I correctly script the following:
If a Font is installed - set to the GUI elements as directed, otherwise - use the default font.