【问题标题】:What fonts are supported by Salesforce PDF generation?Salesforce PDF 生成支持哪些字体?
【发布时间】:2011-09-30 02:41:46
【问题描述】:

我正在使用 VisualForce 页面生成 pdf,其中 renderAs 参数设置为 pdf。即使其他人有complained there are few,我也希望有更多的字体。有人知道与 Salesforce pdf 生成一起使用的其他字体吗?

到目前为止,通过使用这样一个简单的 VisualForce 页面进行测试,我只发现了五种有效的字体(serif、sans-serif、monospace、courier 和 arial unicode ms):

<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>

【问题讨论】:

标签: pdf-generation apex-code


【解决方案1】:

现在看起来就是这样:

  • 衬线
  • 无衬线
  • 等宽
  • 快递
  • Arial Unicode MS

【讨论】:

    猜你喜欢
    • 2011-09-10
    • 2018-09-15
    • 1970-01-01
    • 2015-11-20
    • 2012-02-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多