Use an External Font for Templates

In Advanced PDF templates, we can use an external font other than the default PDF using the following steps:

  1. Navigate to Documents > Files > File Cabinet
  2. Click on the New Folder button.
  3. Add a Folder Name and Save.
  4. Go inside the new folder you created and click Add File.
  5. Do the same for the other TTF files then click on Edit.
  6. Make sure that the Available Without Login is checked so that the TTF file can be used in the Advanced PDF/HTML Templates.
  7. Copy the URL in the File record.
  8. Navigate to the template you are editing and edit the Source Code.
//adding in the header

<link name="SalpicadoSt" type="font" subtype="opentype" src="https://tstdrv2139763.app.netsuite.com/core/media/media.nl?id=2453&c=TSTDRV2139763&h=836e61285282878e511f&_xt=.ttf" 
      src-bold="https://tstdrv2139763.app.netsuite.com/core/media/media.nl?id=2453&c=TSTDRV2139763&h=836e61285282878e511f&_xt=.ttf" bytes="2" />

//calling the font family

<style type="text/css">* {
            <#if .locale == "zh_CN">
             font-family:SalpicadoSt;
            <#elseif .locale == "zh_TW">
              font-family:SalpicadoSt;
            <#elseif .locale == "ja_JP">
              font-family:SalpicadoSt;
            <#elseif .locale == "ko_KR">
              font-family:SalpicadoSt;
            <#elseif .locale == "th_TH">
               font-family:SalpicadoSt;
            <#else>
              font-family:SalpicadoSt;
            </#if>
            }

Leave a comment

Your email address will not be published. Required fields are marked *