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.
![2022-08-30 13_50_05-.png 2022-08-30 13_50_05-.png](https://community.jmp.com/t5/image/serverpage/image-id/45099i5B24D0A0878AA032/image-size/large?v=v2&px=999)
How do I correctly script the following:
If a Font is installed - set to the GUI elements as directed, otherwise - use the default font.