Setting a Template to Use a Font Unavailable in NetSuite
If you want to print using a font or language that is not available in NetSuite, you can edit the template to do this.
-
Load the .TTF font file into NetSuite.
-
In the template, declare the font as opentype, not truetype.
-
Refer to the font in the File Cabinet.
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head> <link name="thai-font" type="font" subtype="opentype" src="https://<accountID>.app.netsuite.com/core/media/media.nl?id=5967216&c=3809789&h=8609ede0aef4cbfad71d&_xt=.ttf" src-bold="https://<accountID>.app.netsuite.com/core/media/media.nl?id=5967216&c=3809789&h=8609ede0aef4cbfad71d&_xt=.ttf" bytes="2" /> <style type="text/css"> * { font-family: thai-font, sans-serif; font-size: 9pt; table-layout: fixed; } th { font-weight: bold; font-size: 8pt; vertical-align: middle; padding: 5px 6px 3px; background-color: #e3e3e3; color: #333333; } td { padding: 4px 6px; } </style>
</head>
<body> ThisกexampleขhasฃwordsคseparatedฅbyฆThaiงcharacters.
</body>
</pdf>
Related Topics
- Source Code Editing in the Template Editor
- Source Code Editing to Customize Advanced Templates
- Syntax for Advanced Template Fields
- Languages for Printed Forms that Use Advanced Templates
- Adding Translated Content in Advanced Printouts
- Adding Striping to Line Items in Advanced Templates
- Adding Page Breaks to Tables
- Printing Subsidiary Logo on Advanced Templates
- Adding Apply Sublist to Check Templates
- Using FreeMarker to Work with Hidden Fields Used in Advanced Templates
- Adding Bar Codes in Advanced Templates