Loading
Prepare for Email to Become the Default Login ExperienceRead More
Vlocity Contract Lifecycle Management
Run the Post-Install Script

Run the Post-Install Script

When you run the following script, your custom font is added to the main font file.

In the Developer Console, run the following script:
Note
Note

Replace <fontname> with the name of the font, replace <namespace> with the namespace of your company's org, and replace <classname> with Salesforce Industries or Foundation DocGen specific class as shows in the examples.

Run this script:

Set<String> fonts = new Set<String>();fonts.add('<fontname>');<namespace>.<classname>;

Example of a custom font script for Salesforce Industries

Set<String> fonts = new Set<String>();
fonts.add('cs_vlocity_webfonts_publicsans);
<namespace>.CmPostInstallClass.asyncProcessCustomFontFiles preparePdfFontLibrary(fonts);

Example of a custom font script for Omnistudio DocGen

Set<String> fonts = new Set<String>();
fonts.add('cs_vlocity_webfonts_cousine');
<namespace>.DocgenPostInstallClass.processCustomFontFiles(fonts);
 
Loading
Salesforce Help | Article