RegisterFontResource Example
InstallShield 2024 » InstallScript Language Reference
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the RegisterFontResource function.
*
\*--------------------------------------------------------------*/
function OnBegin()
string szFileName, svFontTitle;
begin
szFileName = FOLDER_FONTS ^ "Estre.ttf";
svFontTitle = "Estrangelo Edessa";
RegisterFontResource ( szFileName, svFontTitle, TRUE, REGFONT_OPTION_DEFAULT );
// If you cut and paste this sample script into a project
// and run it, the following line aborts execution of the script.
abort;
end;