Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Unable to load the Font files stored on file cabinet
I have to load our official fonts on an Invoice PDF, was trying to load the .otf (opentype) files stored on the file cabinet via the HTML Link tag.
<span style="color:'#800080'">var</span> regularFontUrl <span style="color:'#008000'">=</span> nlapiEscapeXML<span style="color:'#FF0000'">(</span>companyWebsiteUrl <span style="color:'#008000'">+</span> nlapiLoadFile<span style="color:'#FF0000'">(</span>regularFontFileId<span style="color:'#FF0000'">)</span>.getURL<span style="color:'#FF0000'">())</span>; <span style="color:'#800080'">this</span>.addLink<span style="color:'#FF0000'">(</span>'<span style="color:'#0000FF'">&lt;</span>link name=<span style="color:'#0000FF'">"Fonts"</span> type=<span style="color:'#0000FF'">"font"</span> subtype=<span style="color:'#0000FF'">"opentype"</span> src=<span style="color:'#0000FF'">"'</span>+ regularFontUrl +<span style="color:'#0000FF'">'"</span> ' + 'bytes=<span style="color:'#0000FF'">"2"</span><span style="color:'#0000CD'">/&gt;</span>'<span style="color:'#FF0000'">)</span>;
0