search the script for that font name. Replace it with either
- an if statement that tests for the OS and provides a font for that OS
- a JMP base font name
The first choice might look like this:
// TextFont example in scripting index
Text Font( If( Host is( "Mac" ), "Helvetica", "Arial" ), 30, "Italic Bold" );
The second choice might look like this.
// Set Base Font example in scripting index
fontobj << Set Base Font( "Title" );
The base font names are found in preferences:
The user can set their own preference for each base font.
I re-worked the SI example like this ( @Audrey_Shull - I think the example needs help, it works but does not make a very observable change.)
Names Default To Here( 1 );
New Window( "Example",
ob = Outline Box( "Outline Box",
V List Box(
ob2 = Outline Box( "Outline Box 2",
H List Box( Text Edit Box( "Top Left", <<Set Base Font( "Title" ) ), Text Edit Box( "Top Right", <<Set Base Font( "Mono" ) ) )
),
ob3 = Outline Box( "Outline Box 3", H List Box( Text Edit Box( "Bottom Left" ), fontobj = Text Edit Box( "Bottom Right" ) ) )
)
)
);
fontobj << SetBaseFont( "Small" );
to get this:
Bottom Left is unchanged from the default Text font
Using the Base Font Names is good because it keeps the OS dependency out of your JSL and allows users to customize the way fonts are used. Try to pick a Base Font name that represents what the font is doing for your application.
Craige