Test whether a specific font
is installed.
Use this function to determine
whether a specific font is available on the user's system.
Hint:     You
can add font files at the templates section of the script editor, to make them
available 
to scripts of Seminar Pro. If the database resides on a server
(multi-user system) then such fonts
will be automatically distributed to any connecting user.
Parameters:
| Name | Type | Description | 
| fontname | String | Name
  of the font, for example: Source Code Pro | 
Returns:
| Type | Value | Description | 
| Boolean | True
  or False | Returns
  True if the font is available, False if not. | 
Available in:
| WindowMain | WindowLink | 
| YES | YES | 
Used in:
| XojoScript
  Name | GUID | 
| TEST :
  Is font available? | 6973ED62-FCAE-48BE-9142-C1040D7E4B0B | 
Hint: You can find
references to XojoScripts which make use of this function by sending the
following SQL statement to the database:
Select id,GUID, ScriptName,ScriptCode from
im_scripts where ScriptCode Like '%PdfFontAvailable%'
Example XojoScript:
If
Pdfstart("test")
> 0 Then
If pdfFontAvailable("Source
Code Pro") Then
Msgbox("Yes, font is available")
Else
MsgBox("No, font is not available")
End If
End
If