Within NetSuite's system, the BFO library is utilized for PDF rendering. For detailed instructions on utilizing built-in fonts and embedding custom ones, refer to the User Guide starting from page 30.
In addition to the standard 5 fonts, users equipped with the appropriate Acrobat language version can access 7 additional fonts for displaying Chinese, Japanese, and Korean text. The font names include “stsong” (STSong-Light, simplified Chinese), “msung” (MSungLight, traditional Chinese), “mhei” (MHei-Medium, traditional Chinese), “heiseimin” (HeiseiMin-W3, Japanese), “heiseikakugo” (HeiseiKakuGo-W5, Japanese), “hygothic” (HYGoThic-Medium, Korean), and “hysmyeongjo” (HYSMyeongJo-Medium, Korean)
Additionally, explore the pre-existing NetSuite templates as they automatically integrate certain fonts based on the locale. Simply eliminating the <#if>
statement surrounding the Chinese text may resolve any related issues.
<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
<#if .locale == "zh_CN">
<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
<#elseif .locale == "zh_TW">
<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
<#elseif .locale == "ja_JP">
<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
<#elseif .locale == "ko_KR">
<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
<#elseif .locale == "th_TH">
<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
</#if>