function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MrutyunjayMrutyunjay 

Rendered PDF not support Calibri font

Hi all

 

 I have used this code for my pdf out put.Except Calibri all the fonts works fine.

But if I specify Calibri then the font type changes to default font of pdf or something else.

 

<style>
    body {
            font-family:Calibri;
            font-size:65%;
            }
</style>

Edwin VijayEdwin Vijay

Hello,

 

Try using this format

@page { font-family: <your font>; }

Regards,

MrutyunjayMrutyunjay
I have tried this also ,same thing happens.
Edwin VijayEdwin Vijay
Calibri font doesnt come preinstalled in your desktop and has to be installed maually i believe.. U can get the installation file from google..
dchasmandchasman
PDF generation is performed server side inside of Salesforce.com where we have a very limited set of fonts available. I do not believe that installing fonts on your client/browser machine will make a difference one way or the other.
NielsCNielsC

Hello Doug,

 

We are struggling to find a definitive list of what fonts we can use when we render as PDF. Can you piont me in the right direction?

 

Thanks!

Niels

sornasorna

guys,

I am facing the same issue. When I render my VF page as html the font works fine. But if I render as PDF, then Calibri and some other fonts like Harrington doesn't work. Any idea?

nagalakshminagalakshmi

Hi, 

 

I have facing the same issue. If any one got the solution please help me out. 

 

Thanks,

Lakshmi.

DagAndersonDagAnderson

http://help.salesforce.com/apex/HTViewSolution?id=000113353&language=en_US

And this list is misleading - for Arial you have to use Arial Unicode MS, Times-Roman and Helvetic don't work, just use Serif