Font - Register

Registers a font (.ttf file) on the local system.

AutoPlay will attempt to automatically register the file as a TrueType font at run time. This means that the font will be registered with the operating system and will be made available to the user. In order for this to work, the file must be a valid Windows .TTF file.

Action ID:
Action Category:
Action List Syntax:

68
Font
Font.Register (<<FILENAME>>, <<FONTNAME>>)

Settings

File name:

The path and filename of the file that you want to register.

Font name:

The name for the TrueType font as it will appear in the Registry. You can press the Auto-Name button beside this field to automatically scan the file and try to determine its embedded name. Note: If the Auto-Name returns "Unknown", the file is most likely not a valid Windows .TTF file.

Auto-Name:

This will automatically scan the font specified in the File name field and try to determine its embedded name.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_REGISTER_FONT

MSG_ERR_REGISTER_FONT
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

2

MSG_ERR_REGISTER_FONT

MSG_ERR_REGISTER_FONT
MSG_ERR_INVALID_FONTNAME
<<FONTNAME>>

3

MSG_ERR_REGISTER_FONT

MSG_ERR_REGISTER_FONT
MSG_ERR_ADDFONT_FONTTABLE
<<FILENAME>>

4

MSG_ERR_REGISTER_FONT

MSG_ERR_REGISTER_FONT
MSG_ERR_ADDFONT_REGISTRY
<<FILENAME>>

Examples

Installing a font