2
我使用VisualForce頁面生成pdf,並將renderAs參數設置爲pdf。即使其他人有complained there are few,我也希望獲得更多的字體。有誰知道與Salesforce pdf生成一起使用的其他字體嗎?Salesforce PDF生成支持哪些字體?
到目前爲止,我只發現五筆字型的工作(襯線字體,無襯線,等寬,快遞,和Arial Unicode的MS),通過一個簡單的VisualForce網頁測試是這樣的:
<apex:page renderAs="pdf">
<h2>Standard Font Families</h2>
<p style="font-family: serif;">Serif</p>
<p style="font-family: sans-serif;">Sans-serif</p>
<p style="font-family: monospace;">Monospace</p>
<h2>Additional Fonts (wishing for more)</h2>
<p style="font-family: Courier;">Courier!</p>
<p style="font-family: Arial Unicode MS;">Arial Unicode MS!</p>
<h2>Missing Fonts</h2>
<p style="font-family: Arial;">Arial</p>
<p style="font-family: Helvetica;">Helvetica</p>
<p style="font-family: Verdana;">Verdana</p>
<p style="font-family: Georgia;">Georgia</p>
<p style="font-family: Times;">Times</p>
<p style="font-family: Times New Roman;">Times New Roman</p>
<p style="font-family: Consolas;">Consolas</p>
</apex:page>
我只是通過所有的字體跑這[常用字體頁]上(http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html),並來到了空。 – twamley
通過[14 iText基本字體](http://www.mikesdotnetting.com/Article/81/iTextSharp-Working-with-Fonts)...沒有快樂。 – twamley